mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Fix errors reported by the space-infix-ops
ESLint rule
http://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
parent
68bf47d55d
commit
28e50cfa21
6 changed files with 8 additions and 8 deletions
2
external/builder/preprocessor2.js
vendored
2
external/builder/preprocessor2.js
vendored
|
@ -68,7 +68,7 @@ function handlePreprocessorAction(ctx, actionName, args, loc) {
|
|||
jsonPath.substring(ROOT_PREFIX.length));
|
||||
}
|
||||
var jsonContent = fs.readFileSync(jsonPath).toString();
|
||||
var parsedJSON = esprima.parse('(' +jsonContent + ')');
|
||||
var parsedJSON = esprima.parse('(' + jsonContent + ')');
|
||||
parsedJSON.body[0].expression.loc = loc;
|
||||
return parsedJSON.body[0].expression;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue