From 17b8173da0a6aadc3c2ecdc42062bf8fe8b08cfc Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Tue, 12 Dec 2023 14:11:48 -0500 Subject: [PATCH] Remove unneeded return --- x-pack/plugins/fleet/server/services/secrets.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugins/fleet/server/services/secrets.ts b/x-pack/plugins/fleet/server/services/secrets.ts index aa943562945b2..6f50b2cd8b73b 100644 --- a/x-pack/plugins/fleet/server/services/secrets.ts +++ b/x-pack/plugins/fleet/server/services/secrets.ts @@ -782,8 +782,6 @@ function getPolicyWithSecretReferences( secretPath.path.reduce((acc, val, secretPathComponentIndex) => { if (!acc[val]) { acc[val] = {}; - - return acc[val]; } const isLast = secretPathComponentIndex === secretPath.path.length - 1;