mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16218 from Snuffleupagus/isPDFFunction-simplify
Simplify the `isPDFFunction` helper function
This commit is contained in:
commit
ec08bd5c41
1 changed files with 1 additions and 3 deletions
|
@ -502,9 +502,7 @@ class PDFFunction {
|
|||
|
||||
function isPDFFunction(v) {
|
||||
let fnDict;
|
||||
if (typeof v !== "object") {
|
||||
return false;
|
||||
} else if (v instanceof Dict) {
|
||||
if (v instanceof Dict) {
|
||||
fnDict = v;
|
||||
} else if (v instanceof BaseStream) {
|
||||
fnDict = v.dict;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue