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