diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-01-17 12:31:49 -0500 |
---|---|---|
committer | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-01-17 12:31:49 -0500 |
commit | 6207cb2d6e30d709c29175aa9a94707a0f9934d1 (patch) | |
tree | 5e51c3ea00760b5452d128d3cf4f54f0c511d65d /lib/compilers/pascal.js | |
parent | 68aa631366bfb5e6efd74f03326795e70894019a (diff) | |
download | compiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.tar.gz compiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.zip |
npm run lint to get const fixesgh-5871
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r-- | lib/compilers/pascal.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js index 7a8c3cb53..157755398 100644 --- a/lib/compilers/pascal.js +++ b/lib/compilers/pascal.js @@ -167,7 +167,7 @@ export class FPCCompiler extends BaseCompiler { execOptions = this.getDefaultExecOptions(); } - let alreadyHasDPR = path.basename(inputFilename) === this.dprFilename; + const alreadyHasDPR = path.basename(inputFilename) === this.dprFilename; const dirPath = path.dirname(inputFilename); const projectFile = path.join(dirPath, this.dprFilename); @@ -257,11 +257,11 @@ export class FPCCompiler extends BaseCompiler { preProcessLines(asmLines) { let i = 0; - let files = {}; + const files = {}; let currentFileId = 1; while (i < asmLines.length) { - let newFileId = this.tryGetFilenumber(asmLines[i], files); + const newFileId = this.tryGetFilenumber(asmLines[i], files); if (newFileId) currentFileId = newFileId; const extraHint = this.getExtraAsmHint(asmLines[i], currentFileId); |