Skip to content

Commit

Permalink
simpler return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dplumlee committed Feb 19, 2021
1 parent 57e0237 commit 932d97e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ export const filterExceptionItems = (
if (singleEntry.type === 'nested') {
const nestedEntriesArray = singleEntry.entries.filter((singleNestedEntry) => {
const [validatedNestedEntry] = validate(singleNestedEntry, nestedEntryItem);

if (validatedNestedEntry != null) {
return true;
}
return false;
return validatedNestedEntry != null;
});

const [validatedNestedEntry] = validate(
Expand Down

0 comments on commit 932d97e

Please sign in to comment.