Explorar el Código

fix ==null to !secondArg

zahmis hace 5 años
padre
commit
e808473a6a
Se han modificado 1 ficheros con 1 adiciones y 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,