diff options
author | Partouf <partouf@gmail.com> | 2018-03-07 21:03:18 +0100 |
---|---|---|
committer | Partouf <partouf@gmail.com> | 2018-03-07 21:03:18 +0100 |
commit | 28c29013daa48c798e3c9a0abaaad3687b4f08a9 (patch) | |
tree | ad0afef72676167d25aaa2af40465a870d01cb0c /lib/compilers/ppci.js | |
parent | c8be475a02c4b52c1d470bb5def2e54e914c2dd1 (diff) | |
download | compiler-explorer-28c29013daa48c798e3c9a0abaaad3687b4f08a9.tar.gz compiler-explorer-28c29013daa48c798e3c9a0abaaad3687b4f08a9.zip |
shorter
Diffstat (limited to 'lib/compilers/ppci.js')
-rw-r--r-- | lib/compilers/ppci.js | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/compilers/ppci.js b/lib/compilers/ppci.js index 59d7fb2e3..c42613fc2 100644 --- a/lib/compilers/ppci.js +++ b/lib/compilers/ppci.js @@ -29,17 +29,12 @@ const BaseCompiler = require('../base-compiler'), class PPCICompiler extends BaseCompiler { filterUserOptions(args) { return args.filter((item) => { - if (typeof item == "string") { - if ((item.endsWith("output.s") || item.endsWith(this.compileFilename) || !item.includes("/")) && - (item.toLowerCase() != "--report") && - (item.toLowerCase() != "--text-report")) { - return item; - } else { - return false; - } - } else { - return item; - } + if (typeof item !== "string") return true; + + return + ((item.endsWith("output.s") || item.endsWith(this.compileFilename) || !item.includes("/")) && + (item.toLowerCase() !== "--report") && + (item.toLowerCase() !== "--text-report")); }); } |