1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

Fix no-dupe-else-if issues (#9208)

See [`no-dupe-else-if`](https://eslint.org/docs/rules/no-dupe-else-if) for more information.

This change enables `no-dupe-else-if` and fixes the issues raised by the rule.
This commit is contained in:
Whymarrh Whitby 2020-08-12 21:22:02 -02:30 committed by GitHub
parent 853b89e314
commit 42e7d205b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -49,6 +49,7 @@ module.exports = {
'guard-for-in': 'error', 'guard-for-in': 'error',
'implicit-arrow-linebreak': 'error', 'implicit-arrow-linebreak': 'error',
'no-case-declarations': 'error', 'no-case-declarations': 'error',
'no-dupe-else-if': 'error',
'no-empty': 'error', 'no-empty': 'error',
'no-eq-null': 'error', 'no-eq-null': 'error',
'no-global-assign': 'error', 'no-global-assign': 'error',

View File

@ -37,8 +37,6 @@ export default class MenuDroppoComponent extends Component {
if (isOpen) { if (isOpen) {
this.outsideClickHandler = onClickOutside this.outsideClickHandler = onClickOutside
} else if (isOpen) {
this.outsideClickHandler = null
} }
} }