From cb8d17d006f3de7a38a14b3195f8546607418080 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Tue, 6 Feb 2024 21:09:05 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- gui/src/js/messagesHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/js/messagesHandler.ts b/gui/src/js/messagesHandler.ts index 30b1e25b..605899da 100644 --- a/gui/src/js/messagesHandler.ts +++ b/gui/src/js/messagesHandler.ts @@ -38,8 +38,8 @@ function createCallsignListFromAPI(data: { }): { [key: string]: { timestamp: string; body: string } } { const callsignList: { [key: string]: { timestamp: string; body: string } } = {}; - if( typeof(data) == 'undefined'){ - return callsignList + if (typeof data == "undefined") { + return callsignList; } data.messages.forEach((message) => { let callsign =