From 0bf81993a3645cb4a493fa82e717bec675ba0ecc Mon Sep 17 00:00:00 2001 From: Ashokaditya Date: Wed, 28 Apr 2021 08:44:21 +0200 Subject: [PATCH] remove redundant type assertions review changes refs bcf615ac9810edfef0f5037cbd8a82b6972a05dc refs b3f5dc45539da80e66f5ae8240737717f2a14766 --- .../lists/public/exceptions/components/builder/helpers.ts | 2 +- .../security_solution/common/endpoint/schema/trusted_apps.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/lists/public/exceptions/components/builder/helpers.ts b/x-pack/plugins/lists/public/exceptions/components/builder/helpers.ts index c91665f84f815..4cf9f233f3917 100644 --- a/x-pack/plugins/lists/public/exceptions/components/builder/helpers.ts +++ b/x-pack/plugins/lists/public/exceptions/components/builder/helpers.ts @@ -591,7 +591,7 @@ export const getEntryOnOperatorChange = ( }, ...parent.parent.entries.slice(entryIndex + 1), ], - } as BuilderEntry, + }, }; } else { return { index: entryIndex, updatedEntry: newEntry }; diff --git a/x-pack/plugins/security_solution/common/endpoint/schema/trusted_apps.ts b/x-pack/plugins/security_solution/common/endpoint/schema/trusted_apps.ts index 9858f2a72c2d0..54d0becd2446e 100644 --- a/x-pack/plugins/security_solution/common/endpoint/schema/trusted_apps.ts +++ b/x-pack/plugins/security_solution/common/endpoint/schema/trusted_apps.ts @@ -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