[Pkg-mozext-commits] [requestpolicy] 35/65: [fix] jshint/jscs issues

David Prévot taffit at moszumanska.debian.org
Fri Mar 25 22:59:49 UTC 2016


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

taffit pushed a commit to branch master
in repository requestpolicy.

commit b482daa8507e9c99a94047ccd0625cc0f7936b7a
Author: Martin Kimmerle <dev at 256k.de>
Date:   Sun Jan 17 00:32:13 2016 +0100

    [fix] jshint/jscs issues
---
 src/bootstrap.js                       | 2 +-
 src/content/lib/default-preferences.js | 3 +++
 src/content/lib/script-loader.jsm      | 2 +-
 src/content/settings/advancedprefs.js  | 3 ++-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/bootstrap.js b/src/bootstrap.js
index 63eb7d0..da95279 100644
--- a/src/bootstrap.js
+++ b/src/bootstrap.js
@@ -46,7 +46,7 @@ function logSevereError(aMessage, aError) {
   // #ifdef UNIT_TESTING
   Services.obs.notifyObservers(null, "requestpolicy-log-error", msg);
   // #endif
-  Cu.reportError(e);
+  Cu.reportError(aError);
 }
 
 //==============================================================================
diff --git a/src/content/lib/default-preferences.js b/src/content/lib/default-preferences.js
index 92e541a..315b0e0 100644
--- a/src/content/lib/default-preferences.js
+++ b/src/content/lib/default-preferences.js
@@ -1,4 +1,5 @@
 /* global pref */
+// jscs:disable maximumLineLength
 
 pref("extensions.requestpolicy.log", false);
 pref("extensions.requestpolicy.log.level", 0);
@@ -46,3 +47,5 @@ pref("extensions.requestpolicy.unitTesting.loggingErrors.counter", 0);
 //pref("extensions.requestpolicy.allowedOriginsToDestinations", "");
 //pref("extensions.requestpolicy.statusbarIcon", "standard");
 //pref("extensions.requestpolicy.initialSetupDialogShown", false);
+
+// jscs:enable maximumLineLength
diff --git a/src/content/lib/script-loader.jsm b/src/content/lib/script-loader.jsm
index 5a99154..01fe6f1 100644
--- a/src/content/lib/script-loader.jsm
+++ b/src/content/lib/script-loader.jsm
@@ -57,7 +57,7 @@ function logSevereError(aMessage, aError) {
   // #ifdef UNIT_TESTING
   Services.obs.notifyObservers(null, "requestpolicy-log-error", msg);
   // #endif
-  Cu.reportError(e);
+  Cu.reportError(aError);
 }
 
 //==============================================================================
diff --git a/src/content/settings/advancedprefs.js b/src/content/settings/advancedprefs.js
index 6ba4b93..59762c5 100644
--- a/src/content/settings/advancedprefs.js
+++ b/src/content/settings/advancedprefs.js
@@ -139,7 +139,8 @@
         });
 
     // Speculative pre-connections.
-    elManager.addListener($id("pref-speculativePreConnections"), "change", function(event) {
+    elManager.addListener($id("pref-speculativePreConnections"), "change",
+        function(event) {
       Prefs.set("root/ network.http.speculative-parallel-limit",
           event.target.checked ? 6 : 0);
       Services.prefs.savePrefFile(null);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list