[Pkg-javascript-commits] [pdf.js] 110/161: Fix coding style in extensions/firefox/bootstrap.js

David Prévot taffit at moszumanska.debian.org
Sat Apr 19 14:16:35 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 2b5fb59b67f94907118921fd4831a2d939e02fcf
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Sat Mar 22 21:48:00 2014 +0100

    Fix coding style in extensions/firefox/bootstrap.js
---
 extensions/firefox/bootstrap.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/extensions/firefox/bootstrap.js b/extensions/firefox/bootstrap.js
index e275162..25bdaac 100644
--- a/extensions/firefox/bootstrap.js
+++ b/extensions/firefox/bootstrap.js
@@ -51,8 +51,9 @@ function setStringPref(pref, value) {
 }
 
 function log(str) {
-  if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false))
+  if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false)) {
     return;
+  }
   dump(str + '\n');
 }
 
@@ -101,8 +102,9 @@ Factory.prototype = {
 
   // nsIFactory
   createInstance: function createInstance(aOuter, iid) {
-    if (aOuter !== null)
+    if (aOuter !== null) {
       throw Cr.NS_ERROR_NO_AGGREGATION;
+    }
     return (new (this._targetConstructor)()).QueryInterface(iid);
   },
 
@@ -150,8 +152,9 @@ function startup(aData, aReason) {
 }
 
 function shutdown(aData, aReason) {
-  if (aReason == APP_SHUTDOWN)
+  if (aReason == APP_SHUTDOWN) {
     return;
+  }
   var ioService = Services.io;
   var resProt = ioService.getProtocolHandler('resource')
                   .QueryInterface(Ci.nsIResProtocolHandler);

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