Browse Source

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

http://eslint.org/docs/rules/no-cond-assign
Jonas Jenwald 8 years ago
parent
commit
fb5e756683
  1. 2
      src/shared/util.js
  2. 2
      web/compatibility.js

2
src/shared/util.js

@ -2166,7 +2166,7 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) { @@ -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) {

2
web/compatibility.js

@ -270,7 +270,7 @@ if (typeof PDFJS === 'undefined') { @@ -270,7 +270,7 @@ if (typeof PDFJS === 'undefined') {
// initialize result and counters
var bc = 0, bs, buffer, idx = 0, output = '';
// get next character
buffer = input.charAt(idx++);
(buffer = input.charAt(idx++));
// character found in table?
// initialize bit storage and add its ascii value
~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,

Loading…
Cancel
Save