Browse Source

fix ==null to !secondArg

zahmis 5 năm trước cách đây
mục cha
commit
e808473a6a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,