refactor(simulator): remove unneeded ternary operator
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Feb 2023 22:15:56 +0000 (23:15 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Feb 2023 22:15:56 +0000 (23:15 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Utils.ts

index 433891550f1a222ba474aa2dd83f5edf08f46842..34ace09c50fe4bcbddf5b21015e9482fa72532c2 100644 (file)
@@ -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 {