Strict null check fixes
[e-mobility-charging-stations-simulator.git] / src / utils / Utils.ts
index 5fb5f62573448fb3bab45174e4b1afb14f4acc90..6557a588446455506656c7f7133e8fe85c5881f0 100644 (file)
@@ -26,7 +26,7 @@ export default class Utils {
   }
 
   public static async sleep(milliSeconds: number): Promise<NodeJS.Timeout> {
-    return new Promise(resolve => setTimeout(resolve as () => void, milliSeconds));
+    return new Promise((resolve) => setTimeout(resolve as () => void, milliSeconds));
   }
 
   public static formatDurationMilliSeconds(duration: number): string {
@@ -197,7 +197,7 @@ export default class Utils {
   }
 
   public static isUndefined(value: unknown): boolean {
-    return typeof value === 'undefined';
+    return value === undefined;
   }
 
   public static isNullOrUndefined(value: unknown): boolean {