Closed Bug 1407967 Opened 7 years ago Closed 7 years ago

ESLint: lz4 tests are comparing some values to themselves

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
normal

Tracking

(firefox58 fixed)

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In bug 1371293 I'm working on upgrading us to ESLint 4. Currently I'm seeing these errors:

toolkit/components/lz4/tests/xpcshell/data/worker_lz4.js
  76:10  error  Comparing to itself is potentially pointless.  no-self-compare (eslint)

toolkit/components/lz4/tests/xpcshell/test_lz4_sync.js
  9:10  error  Comparing to itself is potentially pointless.  no-self-compare (eslint)

In this case the functions that are affected are comparison functions which are accidentally comparing an item to itself.
Comment on attachment 8917788 [details]
Bug 1407967 - Fix comparison checks in lz4 tests incorrectly comparing arrays to themselves.

https://reviewboard.mozilla.org/r/188728/#review194094

Ouch. Good catch.
Attachment #8917788 - Flags: review+
Attachment #8917788 - Flags: review?(florian)
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d1225e35f570
Fix comparison checks in lz4 tests incorrectly comparing arrays to themselves. r=Yoric
https://hg.mozilla.org/mozilla-central/rev/d1225e35f570
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: