1
0
Fork 0
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:
Kalervo Kujala 2012-03-20 14:16:48 +02:00
parent cdbbd76594
commit eb4ec7899a
5 changed files with 29 additions and 44 deletions

View file

@ -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);