Merge pull request #16218 from Snuffleupagus/isPDFFunction-simplify

Simplify the `isPDFFunction` helper function
This commit is contained in:
Jonas Jenwald 2023-03-28 11:16:25 +02:00 committed by GitHub
commit ec08bd5c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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