From fa57b9de709da1ca945b5e9aa9eb8ba0dac09181 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Sat, 1 Oct 2011 21:39:32 -0500 Subject: [PATCH] Merging if's --- pdf.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdf.js b/pdf.js index 3eb1f5f96..ae8984907 100644 --- a/pdf.js +++ b/pdf.js @@ -4585,10 +4585,8 @@ var PartialEvaluator = (function partialEvaluator() { width: isNum(width) ? width : properties.defaultWidth }; - if (glyph) { - if (replaceGlyph || !glyphs[glyph]) + if (glyph && (replaceGlyph || !glyphs[glyph])) glyphs[glyph] = map[i]; - } // If there is no file, the character mapping can't be modified // but this is unlikely that there is any standard encoding with