From: Jérôme Benoit Date: Wed, 25 Jan 2023 23:02:59 +0000 (+0100) Subject: Fix isEmptyString() semantic X-Git-Tag: v1.1.92~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=29405d4fc27d01f8186482c0826b290152d027fe;p=e-mobility-charging-stations-simulator.git Fix isEmptyString() semantic Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 6557a588..0952be9b 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -193,7 +193,7 @@ export default class Utils { } public static isEmptyString(value: unknown): boolean { - return Utils.isString(value) && (value as string).trim().length === 0; + return Utils.isString(value) ? (value as string).trim().length === 0 : true; } public static isUndefined(value: unknown): boolean {