Przeglądaj źródła

fix ==null to !secondArg

zahmis 5 lat temu
rodzic
commit
e808473a6a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/server/service/bolt.js

+ 1 - 1
src/server/service/bolt.js

@@ -115,7 +115,7 @@ class BoltService {
 
   async searchResults(command, secondArg) {
 
-    if (secondArg == null) {
+    if (!secondArg) {
       return this.client.chat.postEphemeral({
         channel: command.channel_id,
         user: command.user_id,