diff options
author | Indrajith K L | 2021-10-19 01:22:29 +0530 |
---|---|---|
committer | Indrajith K L | 2021-10-19 01:22:29 +0530 |
commit | da316ca1b093e17bb460542780b80c02b578cad4 (patch) | |
tree | 9a7fba719ab250e3a9dd8f1a40f5b32c92a6efd9 | |
parent | 286e891d3faec0dd5fe0b8cbfdbb26920c2051e9 (diff) | |
download | lul-bot-da316ca1b093e17bb460542780b80c02b578cad4.tar.gz lul-bot-da316ca1b093e17bb460542780b80c02b578cad4.tar.bz2 lul-bot-da316ca1b093e17bb460542780b80c02b578cad4.zip |
Code Refactoring
-rw-r--r-- | src/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |