mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fix errors reported by the keyword-spacing
ESLint rule
http://eslint.org/docs/rules/keyword-spacing
This commit is contained in:
parent
86ba634c97
commit
c36468cbce
7 changed files with 8 additions and 8 deletions
|
@ -568,7 +568,7 @@ var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
|
|||
if (this.pdfNetworkStream) {
|
||||
this.pdfNetworkStream.cancelAllRequests('abort');
|
||||
}
|
||||
for(var requestId in this.promisesByRequest) {
|
||||
for (var requestId in this.promisesByRequest) {
|
||||
var capability = this.promisesByRequest[requestId];
|
||||
capability.reject(new Error('Request was aborted'));
|
||||
}
|
||||
|
|
|
@ -210,7 +210,7 @@ var NetworkPdfManager = (function NetworkPdfManagerClosure() {
|
|||
result = value;
|
||||
}
|
||||
resolve(result);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
if (!(e instanceof MissingDataException)) {
|
||||
reject(e);
|
||||
return;
|
||||
|
|
|
@ -550,7 +550,7 @@ var Type1Parser = (function Type1ParserClosure() {
|
|||
this.getToken(); // read in 'dict'
|
||||
this.getToken(); // read in 'dup'
|
||||
this.getToken(); // read in 'begin'
|
||||
while(true) {
|
||||
while (true) {
|
||||
token = this.getToken();
|
||||
if (token === null || token === 'end') {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue