lib/Standupguy.rb in Standupguy-0.0.9 vs lib/Standupguy.rb in Standupguy-0.0.10

- old
+ new

@@ -194,10 +194,10 @@ current_standup ||= { date_key => [] } data_exists = current_standup.keys.include?(date_key) begin if data_exists && !!@data[:ticket_id] ticket_list = current_standup[date_key] - ticket_list.map! { |item| item["ticket_id"] } + ticket_list = ticket_list.map{ |item| item["ticket_id"] } unless ticket_list.empty? already_added = ticket_list.include?(@data[:ticket_id]) raise "Already added" if already_added end end