Explorar o código

fix ==null to !secondArg

zahmis %!s(int64=5) %!d(string=hai) anos
pai
achega
e808473a6a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,