Port bug 1571567 - Enable the no-fallthrough eslint rule
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
Attachments
(2 files)
13.25 KB,
patch
|
Details | Diff | Splinter Review | |
13.13 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•6 years ago
|
||
Somebody please check these, I'm not totally convinced I've done the right thing in every case.
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #3)
That's what they did upstream.
https://hg.mozilla.org/mozilla-central/diff/c0ba1b368b5880253f4c6a5b3deced3d7044cf19/toolkit/modules/PopupNotifications.jsm
Right:
https://hg.mozilla.org/mozilla-central/rev/c0ba1b368b5880253f4c6a5b3deced3d7044cf19#l13.12
I asked in bug 1571567 comment #21. That certainly changes the behaviour if this.isPanelOpen
.
I'd give an r+ with the break restored and the break changed to a return where discussed.
Also see bug 1571567, comment #22. They had doubts whether removing the break was OK, but it got landed anyway after being marked "Done".
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Put the break back and changed a break to a return.
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0659dff2f7e8
Port bug 1571567: Enable the no-fallthrough eslint rule. r=jorgk
Updated•6 years ago
|
Description
•