Simplify runWith return

This commit is contained in:
1computer1 2019-03-15 22:13:38 -04:00
parent 17e5eade08
commit 5568441526
6 changed files with 10 additions and 10 deletions

View file

@ -12,10 +12,10 @@ class CSharp extends Language {
runWith(options) {
if (options.has('e')) {
return { id: this.id, env: { EVAL_EXPR: 'true' } };
return { env: { EVAL_EXPR: 'true' } };
}
return super.runWith(options);
return {};
}
}

View file

@ -12,10 +12,10 @@ class Haskell extends Language {
runWith(options) {
if (options.has('e')) {
return { id: this.id, env: { EVAL_EXPR: 'true' } };
return { env: { EVAL_EXPR: 'true' } };
}
return super.runWith(options);
return {};
}
}

View file

@ -12,10 +12,10 @@ class Julia extends Language {
runWith(options) {
if (options.has('e')) {
return { id: this.id, env: { EVAL_EXPR: 'true' } };
return { env: { EVAL_EXPR: 'true' } };
}
return super.runWith(options);
return {};
}
}

View file

@ -13,10 +13,10 @@ class Python extends Language {
runWith(options) {
if (options.has('2')) {
return { id: 'python2', env: {} };
return { id: 'python2' };
}
return { id: 'python3', env: {} };
return { id: 'python3' };
}
}