Skip to content

Commit

Permalink
Ignore warning for unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Mar 19, 2022
1 parent b36814a commit 5948d90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/form/EnumField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const EnumField = <
if (!childrenProp && !options) {
throw new Error('Either children or options list is required');
}
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- the linter is right here, we are just trying to be extra safe at runtime
if (childrenProp && options) {
throw new Error('Only children or options list can be provided');
}
Expand Down

0 comments on commit 5948d90

Please sign in to comment.