Skip to content

Commit 6370e1d

Browse files
committed
fix: bad practice
1 parent ce793a0 commit 6370e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/scripts/keeperBot.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ async function main() {
544544
// Skip some disputes
545545
disputes = filterDisputesToSkip(disputes);
546546
disputesWithoutJurors = filterDisputesToSkip(disputesWithoutJurors);
547-
for (var dispute of disputes) {
547+
for (const dispute of disputes) {
548548
logger.info(`Dispute #${dispute.id}, round #${dispute.currentRoundIndex}, ${dispute.period} period`);
549549
}
550550
logger.info(`Disputes needing more jurors: ${disputesWithoutJurors.map((dispute) => dispute.id)}`);
@@ -606,7 +606,7 @@ async function main() {
606606

607607
logger.info(`Current phase: ${PHASES[getNumber(await sortition.phase())]}`);
608608

609-
for (var dispute of disputes) {
609+
for (const dispute of disputes) {
610610
// ----------------------------------------------- //
611611
// PASS PERIOD //
612612
// ----------------------------------------------- //
@@ -631,7 +631,7 @@ async function main() {
631631
);
632632
logger.info(`Disputes not fully executed: ${unprocessedDisputesInExecution.map((dispute) => dispute.id)}`);
633633

634-
for (var dispute of unprocessedDisputesInExecution) {
634+
for (const dispute of unprocessedDisputesInExecution) {
635635
const { period } = await core.disputes(dispute.id);
636636
if (period !== 4n) {
637637
logger.info(`Skipping dispute #${dispute.id} because it is not in the execution period`);

0 commit comments

Comments
 (0)