Skip to content

Commit 6ac0a92

Browse files
remove if statement
1 parent 5c488e9 commit 6ac0a92

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/git-version.cr

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,7 @@ module GitVersion
152152
major = false
153153
get_commits_since(previous_tag).each do |c|
154154
commit = c.downcase
155-
match = if @major_id_is_regex
156-
/^#{@major_identifier}/.match(commit)
157-
else
158-
/^#{@major_identifier}/.match(commit)
159-
end
155+
match = /^#{@major_identifier}/.match(commit)
160156
if match
161157
previous_version =
162158
SemanticVersion.new(

0 commit comments

Comments
 (0)