[Pkg-mozext-commits] [tabmixplus] 33/73: Enable Eslint 'no-useless-call'
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 f505e6610c230d8a70d0020961b041744f65ba54
Author: onemen <tabmix.onemen at gmail.com>
Date: Sun Apr 3 20:44:49 2016 +0300
Enable Eslint 'no-useless-call'
---
.eslintrc.js | 2 +-
modules/AsyncUtils.jsm | 2 +-
modules/Services.jsm | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.eslintrc.js b/.eslintrc.js
index a41e5fd..4c75b37 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -130,7 +130,7 @@ module.exports = {
"no-unused-labels": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": [2, "nofunc"],
- "no-useless-call": 0,
+ "no-useless-call": 2,
"no-useless-concat": 2,
"no-useless-constructor": 2,
"no-useless-escape": 0,
diff --git a/modules/AsyncUtils.jsm b/modules/AsyncUtils.jsm
index 3074d41..258f728 100644
--- a/modules/AsyncUtils.jsm
+++ b/modules/AsyncUtils.jsm
@@ -18,7 +18,7 @@ this.AsyncUtils = {
},
spawnFn: function(thisArg, fn, index) {
- return this.promisify(thisArg, fn, index).call(undefined);
+ return this.promisify(thisArg, fn, index)();
},
asyncFn: function(thisArg, fn, index) {
diff --git a/modules/Services.jsm b/modules/Services.jsm
index b5481b8..8997474 100644
--- a/modules/Services.jsm
+++ b/modules/Services.jsm
@@ -123,7 +123,7 @@ this.TabmixSvc = {
while (windowsEnum.hasMoreElements()) {
let window = windowsEnum.getNext();
if (!window.closed) {
- aFunc.call(null, window);
+ aFunc(window);
}
}
},
--
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