refactor: more coding style fixes
[e-mobility-charging-stations-simulator.git] / src / charging-station / broadcast-channel / UIServiceWorkerBroadcastChannel.ts
index 57b4bc788fecf56ad3a9b467f7162d636634ad09..93586ceeee85a927e5fcbbea9f79b70cc2db59d7 100644 (file)
@@ -73,7 +73,7 @@ export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
       hashIdsSucceeded: this.responses
         .get(uuid)
         ?.responses.map(({ status, hashId }) => {
-          if (hashId !== undefined && status === ResponseStatus.SUCCESS) {
+          if (hashId != null && status === ResponseStatus.SUCCESS) {
             return hashId
           }
           return undefined
@@ -83,7 +83,7 @@ export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
         hashIdsFailed: this.responses
           .get(uuid)
           ?.responses.map(({ status, hashId }) => {
-            if (hashId !== undefined && status === ResponseStatus.FAILURE) {
+            if (hashId != null && status === ResponseStatus.FAILURE) {
               return hashId
             }
             return undefined
@@ -94,7 +94,7 @@ export class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChannel {
         responsesFailed: this.responses
           .get(uuid)
           ?.responses.map((response) => {
-            if (response !== undefined && response.status === ResponseStatus.FAILURE) {
+            if (response != null && response.status === ResponseStatus.FAILURE) {
               return response
             }
             return undefined