From da316ca1b093e17bb460542780b80c02b578cad4 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 19 Oct 2021 01:22:29 +0530 Subject: Code Refactoring --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index f6ce618..43a5881 100644 --- a/src/main.js +++ b/src/main.js @@ -60,7 +60,7 @@ function parseCasualMessage(message) { } }) - return currentKey; + return currentKey ? casualMessages[currentKey]: null; } return casualMessages[parsedMessage]; } -- cgit v1.2.3