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
+3 -1
View File
@@ -70,7 +70,9 @@ const langPercentFromDonutLayoutSvg = (d, centerX, centerY) => {
cartesianToPolar(centerX, centerY, dTmp[0], dTmp[1]).angleInDegrees + 90;
let startAngle =
cartesianToPolar(centerX, centerY, dTmp[7], dTmp[8]).angleInDegrees + 90;
if (startAngle > endAngle) startAngle -= 360;
if (startAngle > endAngle) {
startAngle -= 360;
}
return (endAngle - startAngle) / 3.6;
};