Remove unnecessary disables of consistent-return lint rule

This commit is contained in:
Evan Hahn 2021-09-16 15:25:55 -05:00 committed by GitHub
parent f937eba94e
commit fda21edd23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 12 deletions

View file

@ -1447,7 +1447,6 @@ export class Message extends React.PureComponent<Props, State> {
</div>
{reactionPickerRoot &&
createPortal(
// eslint-disable-next-line consistent-return
<Popper
placement="top"
modifiers={[
@ -1758,7 +1757,7 @@ export class Message extends React.PureComponent<Props, State> {
return;
}
// eslint-disable-next-line consistent-return, no-nested-ternary
// eslint-disable-next-line no-nested-ternary
return isTapToViewError
? i18n('incomingError')
: direction === 'outgoing'