Skip to content

Commit

Permalink
TB-46 #time 5m Fix condition errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmet Sezgin Duran committed Aug 25, 2014
1 parent 544b0ea commit 2191cbf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/katip/change_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ def parse_change_log
tags = tags.split
prev_begin = nil

if !tags.include?(@tag_from) or !tags.include?(@tag_to)
puts 'Could not find the given tags. Make sure that both of tags exist.'
puts 'Listing found tags:'
puts tags
if (!@tag_from.nil? && !tags.include?(@tag_from)) || (!@tag_to.nil? && !tags.include?(@tag_to))
show_not_found_message(tags)
return output
end

Expand Down Expand Up @@ -115,5 +113,11 @@ def parse_change_log

output
end

def show_not_found_message(tags)
puts 'Could not find the given tags. Make sure that given tags exist.'
puts 'Listing found tags:'
puts tags
end
end
end

0 comments on commit 2191cbf

Please sign in to comment.