Closed Bug 1329013 Opened 7 years ago Closed 7 years ago

Enable no-lone-blocks rule for eslint

Categories

(Toolkit :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: jaws, Assigned: jaws)

Details

Attachments

(1 file)

There are seven unnecessary blocks that were found by this rule. These blocks just create noise within the code and could potentially mislead a developer to think that a variable or function is scoped to the block that it is defined in.
Comment on attachment 8824226 [details]
Bug 1329013 - Enable no-lone-blocks rule for eslint and remove the seven unnecessary blocks that it found.

https://reviewboard.mozilla.org/r/102738/#review103510
Attachment #8824226 - Flags: review?(dtownsend) → review+
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8f982926c7e5
Enable no-lone-blocks rule for eslint and remove the seven unnecessary blocks that it found. r=mossop
https://hg.mozilla.org/mozilla-central/rev/8f982926c7e5
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: