We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 544b0ea commit 2191cbfCopy full SHA for 2191cbf
lib/katip/change_logger.rb
@@ -56,10 +56,8 @@ def parse_change_log
56
tags = tags.split
57
prev_begin = nil
58
59
- if !tags.include?(@tag_from) or !tags.include?(@tag_to)
60
- puts 'Could not find the given tags. Make sure that both of tags exist.'
61
- puts 'Listing found tags:'
62
- puts tags
+ if (!@tag_from.nil? && !tags.include?(@tag_from)) || (!@tag_to.nil? && !tags.include?(@tag_to))
+ show_not_found_message(tags)
63
return output
64
end
65
@@ -115,5 +113,11 @@ def parse_change_log
115
113
116
114
output
117
+
+ def show_not_found_message(tags)
118
+ puts 'Could not find the given tags. Make sure that given tags exist.'
119
+ puts 'Listing found tags:'
120
+ puts tags
121
+ end
122
123
0 commit comments