From: Jérôme Benoit Date: Tue, 7 Feb 2023 22:15:56 +0000 (+0100) Subject: refactor(simulator): remove unneeded ternary operator X-Git-Tag: v1.1.93~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1732e6140696f6d226d3c99bbf9529f828f72770;p=e-mobility-charging-stations-simulator.git refactor(simulator): remove unneeded ternary operator Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 43389155..34ace09c 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -209,7 +209,7 @@ export default class Utils { public static isNullOrUndefined(value: unknown): boolean { // eslint-disable-next-line eqeqeq, no-eq-null - return value == null ? true : false; + return value == null; } public static isEmptyArray(object: unknown | unknown[]): boolean {