Skip to content

Commit

Permalink
Bug 1687235 - Enable ESLint rule no-setter-return for mobile/. r=agi
Browse files Browse the repository at this point in the history
  • Loading branch information
Standard8 committed Jan 26, 2021
1 parent 07d7dc3 commit e3ee71f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,14 +660,5 @@ module.exports = {
"mozilla/reject-chromeutils-import-null": "off",
},
},
{
files: [
"mobile/android/chrome/geckoview/SessionStateAggregator.js",
"mobile/android/modules/geckoview/DelayedInit.jsm",
],
rules: {
"no-setter-return": "off",
},
},
],
};
2 changes: 0 additions & 2 deletions mobile/android/chrome/geckoview/SessionStateAggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,6 @@ class MessageQueue extends Handler {
clearTimeout(this._timeout);
this._timeout = null;
}

return val;
}

uninit() {
Expand Down
4 changes: 2 additions & 2 deletions mobile/android/modules/geckoview/DelayedInit.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ var Impl = {
// we can get rid of our proxy property.
if (prop.get || prop.set) {
Object.defineProperty(object, name, prop);
return prop.set.call(object);
prop.set.call(object);
return;
}

prop.value = newVal;
Object.defineProperty(object, name, prop);
return newVal;
},
configurable: true,
enumerable: true,
Expand Down

0 comments on commit e3ee71f

Please sign in to comment.