lib/slackistrano/capistrano.rb in slackistrano-3.8.3 vs lib/slackistrano/capistrano.rb in slackistrano-3.8.4

- old
+ new

@@ -51,10 +51,10 @@ icon_url: @messaging.icon_url, icon_emoji: @messaging.icon_emoji, }.merge(payload) channels = Array(@messaging.channels_for(action)) - if !@messaging.via_slackbot? == false && channels.empty? + if !@messaging.via_slackbot? && channels.empty? channels = [nil] # default webhook channel end channels.each do |channel| post(payload.merge(channel: channel))