mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove unreachable logic after error(...) is called.
The function error(...) always throws so there is no need to return separately or have an else branch.
This commit is contained in:
parent
cdbbd76594
commit
eb4ec7899a
5 changed files with 29 additions and 44 deletions
|
@ -82,7 +82,7 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
|
|||
fnObj = xref.fetchIfRef(fnObj);
|
||||
if (isArray(fnObj))
|
||||
error('No support for array of functions');
|
||||
else if (!isPDFFunction(fnObj))
|
||||
if (!isPDFFunction(fnObj))
|
||||
error('Invalid function');
|
||||
var fn = PDFFunction.parse(xref, fnObj);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue