aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2021-10-19 01:22:29 +0530
committerIndrajith K L2021-10-19 01:22:29 +0530
commitda316ca1b093e17bb460542780b80c02b578cad4 (patch)
tree9a7fba719ab250e3a9dd8f1a40f5b32c92a6efd9
parent286e891d3faec0dd5fe0b8cbfdbb26920c2051e9 (diff)
downloadlul-bot-da316ca1b093e17bb460542780b80c02b578cad4.tar.gz
lul-bot-da316ca1b093e17bb460542780b80c02b578cad4.tar.bz2
lul-bot-da316ca1b093e17bb460542780b80c02b578cad4.zip
Code Refactoring
-rw-r--r--src/main.js2
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];
}