Skip to content

Commit

Permalink
reduce ignore list in favor of one-liner ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke authored and kevinsawicki committed Mar 31, 2016
1 parent 67d1894 commit 09635ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/browser/rpc-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ipcMain.on('ATOM_BROWSER_CONSTRUCTOR', function (event, id, args) {

// Call new with array of arguments.
// http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args))) // eslint-disable-line
event.returnValue = valueToMeta(event.sender, obj)
} catch (error) {
event.returnValue = exceptionToMeta(error)
Expand All @@ -304,7 +304,7 @@ ipcMain.on('ATOM_BROWSER_MEMBER_CONSTRUCTOR', function (event, id, method, args)
let constructor = objectsRegistry.get(id)[method]

// Call new with array of arguments.
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args))) // eslint-disable-line
event.returnValue = valueToMeta(event.sender, obj)
} catch (error) {
event.returnValue = exceptionToMeta(error)
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
"runas": "^3.0.0"
},
"standard": {
"ignore": [
"/lib/browser/rpc-server.js",
"/lib/common/asar.js",
"/vendor"
]
"ignore": ["/vendor"],
},
"private": true,
"scripts": {
Expand Down

0 comments on commit 09635ae

Please sign in to comment.