1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fix errors reported by the no-cond-assign ESLint rule

http://eslint.org/docs/rules/no-cond-assign
This commit is contained in:
Jonas Jenwald 2016-12-10 12:33:40 +01:00
parent 00a006e466
commit fb5e756683
2 changed files with 2 additions and 2 deletions

View file

@ -2166,7 +2166,7 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) {
err('\\ not allowed in relative path.');
}
var tmp;
if (tmp = relativePathDotMapping[buffer.toLowerCase()]) {
if ((tmp = relativePathDotMapping[buffer.toLowerCase()])) {
buffer = tmp;
}
if ('..' === buffer) {