Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Heitor Silva committed Oct 25, 2016
1 parent 189cdf8 commit dc1e839
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Sandbox {

const script = this.compileCode(filename, code);

return this.runScript(script, req).then((result) => {
this.runScript(script, req).then((result) => {
accept(result);
}, (err) => {
reject(err);
Expand Down
3 changes: 2 additions & 1 deletion test/support/invalid.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable no-unused-vars, no-undef */
function main(req, res) {
let a = 10;

a += b;

res.send(a);
}
}
3 changes: 2 additions & 1 deletion test/support/valid.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable no-unused-vars */
function main(req, res) {
let a = 10;

a += 1;

res.send(a);
}
}

0 comments on commit dc1e839

Please sign in to comment.