From c9d205a283a303dd2c019a4f562c5edeae1b4f6e Mon Sep 17 00:00:00 2001 From: JDawg287 Date: Thu, 12 Sep 2024 16:49:25 -0400 Subject: [PATCH] fix: sonarcloud warnings Signed-off-by: JDawg287 --- tasks/compile.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/compile.ts b/tasks/compile.ts index 22bd016b7..c3f9a3a6a 100644 --- a/tasks/compile.ts +++ b/tasks/compile.ts @@ -14,11 +14,11 @@ const IGNORED_CONTRACTS = [ task("compile", "Compiles the entire project, building all artifacts and build ignored contracts.").setAction( async (args, hre, runSuper) => { // Rename the ignored contracts to the original file name to allow compilation - var renamedFiles: string[] = []; + const renamedFiles: string[] = []; IGNORED_CONTRACTS.forEach((contract) => { - var sourceFilePath = path.join(contract); - var renamedContract = contract.replace(".ignored", ""); - var destinationFilePath = path.join(renamedContract); + const sourceFilePath = path.join(contract); + const renamedContract = contract.replace(".ignored", ""); + const destinationFilePath = path.join(renamedContract); renamedFiles.push(destinationFilePath); renameFile(sourceFilePath, destinationFilePath); }); @@ -31,7 +31,7 @@ task("compile", "Compiles the entire project, building all artifacts and build i // Revert the renaming of the ignored contracts // Note: Check the artifacts folder to see if the ignored contracts are compiled renamedFiles.forEach((file) => { - var originalFilePath = file + ".ignored"; + const originalFilePath = file + ".ignored"; renameFile(file, originalFilePath); }); }