[Pkg-mozext-commits] [tabmixplus] 34/73: Enable Eslint 'padded-blocks'
David Prévot
taffit at moszumanska.debian.org
Mon May 9 02:30:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 9eb00ffbd811310a3404dff4dd63a7dabb363ae7
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Apr 3 22:49:29 2016 +0300
Enable Eslint 'padded-blocks'
---
.eslintrc.js | 2 +-
chrome/content/links/setup.js | 1 -
chrome/content/places/places.js | 1 -
chrome/content/session/session.js | 2 --
modules/log.jsm | 2 --
5 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index 4c75b37..6ebdee2 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -199,7 +199,7 @@ module.exports = {
"one-var-declaration-per-line": 0,
"operator-assignment": [0, "always"],
"operator-linebreak": [2, "after"],
- "padded-blocks": [0, "never"],
+ "padded-blocks": [2, "never"],
"prefer-arrow-callback": 0, // TODO many errors in old code
"prefer-const": 0, // TODO many errors in old code
"prefer-reflect": 0, // since Firefox 42
diff --git a/chrome/content/links/setup.js b/chrome/content/links/setup.js
index 0c4f927..89f783b 100644
--- a/chrome/content/links/setup.js
+++ b/chrome/content/links/setup.js
@@ -163,7 +163,6 @@ Tabmix.beforeBrowserInitOnLoad = function() {
// add tabmix menu item to tab context menu before menumanipulator and MenuEdit initialize
TabmixContext.buildTabContextMenu();
-
} catch (ex) {
this.assert(ex);
}
diff --git a/chrome/content/places/places.js b/chrome/content/places/places.js
index f137f3b..b9b076b 100644
--- a/chrome/content/places/places.js
+++ b/chrome/content/places/places.js
@@ -661,7 +661,6 @@ Tabmix.onContentLoaded = {
' TabmixTabbar.updateScrollStatus();' +
' TabmixTabbar.updateBeforeAndAfter();'
).toCode();
-
},
change_utilityOverlay: function() {
diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index f35a5cd..67204c3 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -568,7 +568,6 @@ TabmixSessionManager = {
windowIsClosing: function SM_WindowIsClosing(aCanClose, aLastWindow,
aSaveSession, aRemoveClosedTabs, aKeepClosedWindows) {
-
if (this.isPrivateWindow) {
this.removeSession(this.gThisWin, this.gSessionPath[0]);
}
@@ -2193,7 +2192,6 @@ TabmixSessionManager = {
this.promptService([Tabmix.BUTTON_CANCEL, Tabmix.HIDE_MENUANDTEXT, chkBoxState],
[title, msg, "", chkBoxLabel, buttons], window, callBack);
}
-
},
afterCrashPromptCallBack: function SM_afterCrashPromptCallBack(aResult) {
diff --git a/modules/log.jsm b/modules/log.jsm
index 7c54332..e81c565 100644
--- a/modules/log.jsm
+++ b/modules/log.jsm
@@ -82,7 +82,6 @@ this.console = {
} else {
logMethod();
}
-
} catch (ex) {
this.assert(ex, "Error we can't show " + aMethod + " in Tabmix.show");
}
@@ -156,7 +155,6 @@ this.console = {
let args = Array.prototype.slice.call(arguments);
return args.indexOf(callerName) > -1;
-
} catch (ex) {
this.assert(ex, "Error we can't check for caller name");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list