Skip to content

Commit

Permalink
[fix] jshint/jscs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myrdd committed Jan 16, 2016
1 parent 2b644ba commit b482daa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//==============================================================================
Expand Down
3 changes: 3 additions & 0 deletions src/content/lib/default-preferences.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* global pref */
// jscs:disable maximumLineLength

pref("extensions.requestpolicy.log", false);
pref("extensions.requestpolicy.log.level", 0);
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/content/lib/script-loader.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//==============================================================================
Expand Down
3 changes: 2 additions & 1 deletion src/content/settings/advancedprefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b482daa

Please sign in to comment.