From c552c7ad67859dd48ed34ab554439050b75501f3 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 5 May 2024 11:33:18 +0000 Subject: [PATCH] Removed exception thrown in compare util and instead assume two objects dont match (!324) Co-authored-by: clodan Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/324 Co-authored-by: Alex Co-committed-by: Alex --- project/src/utils/CompareUtil.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/src/utils/CompareUtil.ts b/project/src/utils/CompareUtil.ts index 80b32053..2bd62e74 100644 --- a/project/src/utils/CompareUtil.ts +++ b/project/src/utils/CompareUtil.ts @@ -57,6 +57,7 @@ export class CompareUtil { return v1 === v2; } - throw new Error(`could not detect type match for ${typeOfv1} and ${typeOfv2}`); + + return false; } }