Browse Source

style(js): Use underscores in getRateLimitValues for readability (#40233)

Evan Purkhiser 2 years ago
parent
commit
026d3e6452

+ 6 - 6
static/app/views/settings/organizationRateLimits/organizationRateLimits.tsx

@@ -16,14 +16,14 @@ type Props = RouteComponentProps<{}, {}> & {
 const getRateLimitValues = () => {
   const steps: number[] = [];
   let i = 0;
-  while (i <= 1000000) {
+  while (i <= 1_000_000) {
     steps.push(i);
-    if (i < 10000) {
-      i += 1000;
-    } else if (i < 100000) {
-      i += 10000;
+    if (i < 10_000) {
+      i += 1_000;
+    } else if (i < 100_000) {
+      i += 10_000;
     } else {
-      i += 100000;
+      i += 100_000;
     }
   }
   return steps;