[Pkg-mozext-commits] [requestpolicy] 185/257: [ref] JSCS: fix some more issues

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:20:11 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 8a14a39a2eec357a62f9415be3ceb17e042d6cd5
Author: Martin Kimmerle <dev at 256k.de>
Date:   Thu Dec 3 12:29:44 2015 +0100

    [ref] JSCS: fix some more issues
---
 src/content/lib/request-processor.jsm |  9 ++++++---
 src/content/lib/script-loader.jsm     | 11 ++++-------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/content/lib/request-processor.jsm b/src/content/lib/request-processor.jsm
index e4236f1..45590ef 100644
--- a/src/content/lib/request-processor.jsm
+++ b/src/content/lib/request-processor.jsm
@@ -904,7 +904,8 @@ var RequestProcessor = (function() {
   };
 
   self.registerFormSubmitted = function(originUrl, destinationUrl) {
-    originUrl = DomainUtil.ensureUriHasPath(DomainUtil.stripFragment(originUrl));
+    originUrl = DomainUtil.ensureUriHasPath(
+        DomainUtil.stripFragment(originUrl));
     destinationUrl = DomainUtil.ensureUriHasPath(
         DomainUtil.stripFragment(destinationUrl));
 
@@ -1022,13 +1023,15 @@ var RequestProcessor = (function() {
         "Could not find observer to remove " + "in removeRequestObserver()");
   };
 
-  self.getDeniedRequests = function(currentlySelectedOrigin, allRequestsOnDocument) {
+  self.getDeniedRequests = function(currentlySelectedOrigin,
+      allRequestsOnDocument) {
     Logger.dump("## getDeniedRequests");
     return _getRequestsHelper(currentlySelectedOrigin, allRequestsOnDocument,
         false);
   };
 
-  self.getAllowedRequests = function(currentlySelectedOrigin, allRequestsOnDocument) {
+  self.getAllowedRequests = function(currentlySelectedOrigin,
+      allRequestsOnDocument) {
     Logger.dump("## getAllowedRequests");
     return _getRequestsHelper(currentlySelectedOrigin, allRequestsOnDocument,
         true);
diff --git a/src/content/lib/script-loader.jsm b/src/content/lib/script-loader.jsm
index bb4f45c..3832bfb 100644
--- a/src/content/lib/script-loader.jsm
+++ b/src/content/lib/script-loader.jsm
@@ -68,12 +68,10 @@ var ScriptLoader = (function() {
   // EnvironmentManager has to be unloaded even later than ScriptLoader
   moduleUnloadExceptions[getModuleURI("lib/environment")] = true;
 
-
   // contains the module IDs that are currently being imported initially and
   // have not finished importing yet.
   let modulesCurrentlyBeingImported = {};
 
-
   let self = {
     /**
      * Unload all modules that have been imported.
@@ -88,7 +86,7 @@ var ScriptLoader = (function() {
           // #endif
           try {
             Cu.unload(uri);
-          } catch(e) {
+          } catch (e) {
             console.error(`[RPC] [ScriptLoader] failed to unload "${uri}"`);
             Cu.reportError(e);
           }
@@ -143,11 +141,10 @@ var ScriptLoader = (function() {
         }
       } catch (e) {
         if (e.result === Cr.NS_ERROR_FILE_NOT_FOUND) {
-          logSevereError('Failed to import module with ID "' + moduleID +
-                         '", the file was not found!', e);
+          logSevereError(`Failed to import module with ID "${moduleID}", ` +
+                         "the file was not found!", e);
         } else {
-          logSevereError('Failed to import module with ID "' + moduleID +
-                         '".', e);
+          logSevereError(`Failed to import module with ID "${moduleID}".`, e);
         }
       }
       return scope;

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