aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ppci.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/ppci.js')
-rw-r--r--lib/compilers/ppci.js17
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"));
});
}