Skip to content

Commit

Permalink
remove redundant type assertions
Browse files Browse the repository at this point in the history
review changes
refs bcf615a
refs b3f5dc4
  • Loading branch information
ashokaditya committed Apr 28, 2021
1 parent ddc3d72 commit 0bf8199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export const getEntryOnOperatorChange = (
},
...parent.parent.entries.slice(entryIndex + 1),
],
} as BuilderEntry,
},
};
} else {
return { index: entryIndex, updatedEntry: newEntry };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ConditionEntryTypeSchema = schema.conditional(
schema.oneOf([schema.literal('match'), schema.literal('wildcard')]),
schema.literal('match')
);
const ConditionEntryOperatorSchema = schema.literal('included' as ConditionEntry['operator']);
const ConditionEntryOperatorSchema = schema.literal('included');

/*
* A generic Entry schema to be used for a specific entry schema depending on the OS
Expand Down

0 comments on commit 0bf8199

Please sign in to comment.