fix: use const instead of let

This commit is contained in:
p-sw 2024-06-04 23:01:28 +09:00
parent f7ce1e8a1f
commit f99d32025f

View File

@ -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);
}