mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-08 20:20:03 +00:00
refactor: enable curly eslint rule (#3137)
This commit is contained in:
+6
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user