[Pkg-javascript-commits] [pdf.js] 91/246: Add strict equalities in src/core/worker.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:29 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 fb9fea2f36a341301c8f16ade9be173bd70e7c69
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Aug 1 22:17:47 2014 +0200

    Add strict equalities in src/core/worker.js
---
 src/core/worker.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/worker.js b/src/core/worker.js
index d8cdf87..78a91d3 100644
--- a/src/core/worker.js
+++ b/src/core/worker.js
@@ -141,7 +141,7 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
         },
 
         onError: function onError(status) {
-          if (status == 404) {
+          if (status === 404) {
             var exception = new MissingPDFException('Missing PDF "' +
                                                     source.url + '".');
             handler.send('MissingPDF', { exception: exception });

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