Adjust the space-unary-ops ESLint rule to comply with mozilla-central lint rules

See http://eslint.org/docs/rules/space-unary-ops; a *very* small part of issue 7957.
This commit is contained in:
Jonas Jenwald 2017-01-16 17:19:25 +01:00
parent c0a47fddcc
commit 0dff8f3600
2 changed files with 2 additions and 2 deletions

View File

@ -104,6 +104,6 @@
"space-before-function-paren": ["error", { "anonymous": "ignore", "named": "never", }],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error", { "int32Hint": false }],
"space-unary-ops": ["error", { "words": true, "nonwords": false, "overrides": { "void": false, }, }],
"space-unary-ops": ["error", { "words": true, "nonwords": false, }],
},
}

View File

@ -171,7 +171,7 @@ PdfDataListener.prototype = {
if (this.length >= 0 && this.length < this.loaded) {
this.length = -1; // reset the length, server is giving incorrect one
}
this.onprogress(this.loaded, this.length >= 0 ? this.length : void(0));
this.onprogress(this.loaded, this.length >= 0 ? this.length : void 0);
},
readData: function PdfDataListener_readData() {
var result = this.buffer;