fix: use const instead of let
This commit is contained in:
parent
f7ce1e8a1f
commit
f99d32025f
@ -29,11 +29,11 @@ import React, {
|
||||
} from "react";
|
||||
|
||||
function buildThresholdList() {
|
||||
let thresholds = [];
|
||||
let numSteps = 20;
|
||||
const thresholds: number[] = [];
|
||||
const numSteps = 20;
|
||||
|
||||
for (let i = 1.0; i <= numSteps; i++) {
|
||||
let ratio = i / numSteps;
|
||||
const ratio = i / numSteps;
|
||||
thresholds.push(ratio);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user