Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vaindil committed Aug 2, 2023
1 parent 201f253 commit 5a874c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/ui/changes/commit-message-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ export class CommitMessageAvatar extends React.Component<

// the parent component only renders this one if an error/warning is present, so we
// only need to check which of the two it is here
const isError = warningType === 'disallowedEmail' && emailRuleFailures?.status === 'fail'
const classes = classNames('warning-badge', { error: isError, warning: !isError })
const isError =
warningType === 'disallowedEmail' && emailRuleFailures?.status === 'fail'
const classes = classNames('warning-badge', {
error: isError,
warning: !isError,
})
const symbol = isError ? OcticonSymbol.stop : OcticonSymbol.alert

return (
Expand Down

0 comments on commit 5a874c9

Please sign in to comment.