mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Lint: correct code style violations
Manual observations and working with other linting tools found these.
This commit is contained in:
parent
978b214c92
commit
5194e68134
13 changed files with 27 additions and 34 deletions
|
@ -226,7 +226,7 @@ var PDFFunction = (function PDFFunctionClosure() {
|
|||
// x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
|
||||
var domain_2i = domain[i][0];
|
||||
var domain_2i_1 = domain[i][1];
|
||||
var xi = Math.min(Math.max(src[srcOffset +i], domain_2i),
|
||||
var xi = Math.min(Math.max(src[srcOffset + i], domain_2i),
|
||||
domain_2i_1);
|
||||
|
||||
// e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
|
||||
|
@ -467,7 +467,7 @@ var PDFFunction = (function PDFFunctionClosure() {
|
|||
if (value < bound) {
|
||||
value = bound;
|
||||
} else {
|
||||
bound = range[i * 2 +1];
|
||||
bound = range[i * 2 + 1];
|
||||
if (value > bound) {
|
||||
value = bound;
|
||||
}
|
||||
|
@ -1052,7 +1052,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() {
|
|||
return null;
|
||||
}
|
||||
n = num1.number;
|
||||
if (n < 0 || (n|0) !== n || stack.length < n) {
|
||||
if (n < 0 || (n | 0) !== n || stack.length < n) {
|
||||
return null;
|
||||
}
|
||||
ast1 = stack[stack.length - n - 1];
|
||||
|
@ -1102,7 +1102,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() {
|
|||
}
|
||||
j = num2.number;
|
||||
n = num1.number;
|
||||
if (n <= 0 || (n|0) !== n || (j|0) !== j || stack.length < n) {
|
||||
if (n <= 0 || (n | 0) !== n || (j | 0) !== j || stack.length < n) {
|
||||
// ... and integers
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue