Skip to content

Commit a079a49

Browse files
committed
chore: eslint fix
1 parent c8ec772 commit a079a49

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/runtime.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export default class Runtime {
4949
// * "File Based"
5050
// input (Optional) - {String} that'll be provided to the `stdin` of the new process
5151
execute(argType = 'Selection Based', input = null, options = null) {
52-
5352
const codeContext = this.codeContextBuilder.buildCodeContext(
5453
atom.workspace.getActiveTextEditor(), argType);
5554

@@ -66,16 +65,16 @@ export default class Runtime {
6665
var terminus = require('../../terminus/lib/terminus.js').provideTerminus();
6766
} catch (e) {
6867
var terminus = null;
69-
console.log("Could not find Terminus");
68+
console.log('Could not find Terminus');
7069
}
7170
if (terminus != null) {
72-
var command = commandContext.command;
73-
for (let i = 0; i < commandContext.args.length; i++) {
74-
command += ' "' + commandContext.args[i] + '"';
75-
}
76-
terminus.run(['printf "\\33c\\e[3J" && ' + command]);
77-
return;
78-
}
71+
let command = commandContext.command;
72+
for (let i = 0; i < commandContext.args.length; i++) {
73+
command += ` "${commandContext.args[i]}"`;
74+
}
75+
terminus.run([`printf "\\33c\\e[3J" && ${command}`]);
76+
return;
77+
}
7978

8079
if (atom.config.get('script.stopOnRerun')) this.stop();
8180
this.emitter.emit('start');

0 commit comments

Comments
 (0)