diff options
author | Matt Godbolt <matt@godbolt.org> | 2021-05-28 18:08:05 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2021-05-28 18:08:05 -0500 |
commit | a4edf7ed6bc51e73635faae652c631b4e0f13647 (patch) | |
tree | 53e1efb35bb97e2282226cb04c2d49405c463952 /lib/compilers/assembly.js | |
parent | b5a6b45a9801d30998304b45d688701b943ae55f (diff) | |
download | compiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.tar.gz compiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.zip |
No array for each
Diffstat (limited to 'lib/compilers/assembly.js')
-rw-r--r-- | lib/compilers/assembly.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/assembly.js b/lib/compilers/assembly.js index 40e0042bd..ba1473c1b 100644 --- a/lib/compilers/assembly.js +++ b/lib/compilers/assembly.js @@ -57,11 +57,11 @@ export class AssemblyCompiler extends BaseCompiler { const files = fs.readdirSync(outputFolder); let outputFilename = super.filename(fn); - files.forEach(file => { + for (const file of files) { if (file[0] !== '.' && file !== this.compileFilename) { outputFilename = path.join(outputFolder, file); } - }); + } return outputFilename; } |