Skip to content

Commit

Permalink
fix: sonarcloud warnings
Browse files Browse the repository at this point in the history
Signed-off-by: JDawg287 <[email protected]>
  • Loading branch information
JDawg287 committed Sep 12, 2024
1 parent 73905e7 commit c9d205a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -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);
});
}
Expand Down

0 comments on commit c9d205a

Please sign in to comment.