mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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:
parent
853b89e314
commit
42e7d205b2
@ -49,6 +49,7 @@ module.exports = {
|
||||
'guard-for-in': 'error',
|
||||
'implicit-arrow-linebreak': 'error',
|
||||
'no-case-declarations': 'error',
|
||||
'no-dupe-else-if': 'error',
|
||||
'no-empty': 'error',
|
||||
'no-eq-null': 'error',
|
||||
'no-global-assign': 'error',
|
||||
|
@ -37,8 +37,6 @@ export default class MenuDroppoComponent extends Component {
|
||||
|
||||
if (isOpen) {
|
||||
this.outsideClickHandler = onClickOutside
|
||||
} else if (isOpen) {
|
||||
this.outsideClickHandler = null
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user