From f019afa920a1a2ef7c14c0f8ea7d58466ac97d0c Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 24 Apr 2023 13:21:14 +0200 Subject: [PATCH] MOBILE-4282 core: Improve helper types --- src/core/services/utils/utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/services/utils/utils.ts b/src/core/services/utils/utils.ts index 6f71dd6ee..35ae3d503 100644 --- a/src/core/services/utils/utils.ts +++ b/src/core/services/utils/utils.ts @@ -1312,11 +1312,7 @@ export class CoreUtilsProvider { keyName: string, valueName: string, keyPrefix?: string, - ): {[name: string]: T} | undefined { - if (!objects) { - return; - } - + ): {[name: string]: T} { const prefixSubstr = keyPrefix ? keyPrefix.length : 0; const mapped = {}; objects.forEach((item) => {