[Pkg-javascript-commits] [pdf.js] 125/246: Fixes lint errors

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 682b93ac9eecaa3bdbd2611341a566a5c69896d7
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Tue Aug 5 21:55:59 2014 -0500

    Fixes lint errors
---
 src/core/cmap.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/cmap.js b/src/core/cmap.js
index 1bbc0e4..34049c4 100644
--- a/src/core/cmap.js
+++ b/src/core/cmap.js
@@ -359,10 +359,10 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
   function hexToStr(a, size) {
     // This code is hot. Special-case some common values to avoid creating an
     // object with subarray().
-    if (size == 1) {
+    if (size === 1) {
       return String.fromCharCode(a[0], a[1]);
     }
-    if (size == 3) {
+    if (size === 3) {
       return String.fromCharCode(a[0], a[1], a[2], a[3]);
     }
     return String.fromCharCode.apply(null, a.subarray(0, size + 1));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list