mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-23 19:30:59 +02:00
Skip the temporary variable when calling #findStreamLength (PR 18125 follow-up)
This commit is contained in:
parent
17e09e5478
commit
c349ac3a5d
@ -710,11 +710,10 @@ class Parser {
|
|||||||
this.shift(); // 'stream'
|
this.shift(); // 'stream'
|
||||||
} else {
|
} else {
|
||||||
// Bad stream length, scanning for endstream command.
|
// Bad stream length, scanning for endstream command.
|
||||||
const actualLength = this.#findStreamLength(startPos);
|
length = this.#findStreamLength(startPos);
|
||||||
if (actualLength < 0) {
|
if (length < 0) {
|
||||||
throw new FormatError("Missing endstream command.");
|
throw new FormatError("Missing endstream command.");
|
||||||
}
|
}
|
||||||
length = actualLength;
|
|
||||||
|
|
||||||
lexer.nextChar();
|
lexer.nextChar();
|
||||||
this.shift();
|
this.shift();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user