Skip to content

Commit

Permalink
chore(lint): resolve linting issue
Browse files Browse the repository at this point in the history
remove unnecessary type assertion
  • Loading branch information
Michael Wittwer committed Jul 10, 2024
1 parent eb5aa0a commit 9b3b47d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import { ConditionOperator } from '../type/condition-operator.type'
*/
export function aliasForOperator(operator: ConditionOperator): OperatorAlias {
return Array.isArray(OPERATOR_TO_ALIAS_MAP[operator])
? <OperatorAlias>OPERATOR_TO_ALIAS_MAP[operator][0]
: <OperatorAlias>OPERATOR_TO_ALIAS_MAP[operator]
? OPERATOR_TO_ALIAS_MAP[operator][0]
: OPERATOR_TO_ALIAS_MAP[operator]
}

0 comments on commit 9b3b47d

Please sign in to comment.