Merge pull request #7960 from Snuffleupagus/eslint_space-unary-ops

Adjust the `space-unary-ops` ESLint rule to comply with mozilla-central lint rules
This commit is contained in:
Tim van der Meij 2017-01-16 22:18:39 +01:00 committed by GitHub
commit c1703e977d
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;