Simplify runWith return
This commit is contained in:
parent
17e5eade08
commit
5568441526
6 changed files with 10 additions and 10 deletions
|
@ -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 {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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' };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue