From 932d97e0198e21c3f171c5336860e1d1c1efea89 Mon Sep 17 00:00:00 2001 From: Davis Plumlee Date: Fri, 19 Feb 2021 16:58:56 -0500 Subject: [PATCH] simpler return type --- .../public/common/components/exceptions/helpers.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx index 3828f0d3d8dbe8..13ee06e8cbac9c 100644 --- a/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx +++ b/x-pack/plugins/security_solution/public/common/components/exceptions/helpers.tsx @@ -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(