refactor: enable curly eslint rule (#3137)

This commit is contained in:
Alexandr Garbuzov
2023-09-12 10:06:01 +02:00
committed by GitHub
parent b611018476
commit c42798b39e
14 changed files with 71 additions and 24 deletions
+6 -2
View File
@@ -10,8 +10,12 @@ const calculateCircleProgress = (value) => {
const radius = 40;
const c = Math.PI * (radius * 2);
if (value < 0) value = 0;
if (value > 100) value = 100;
if (value < 0) {
value = 0;
}
if (value > 100) {
value = 100;
}
return ((100 - value) / 100) * c;
};