Skip to content

Commit

Permalink
[rubocop] Style/RedundantBegin
Browse files Browse the repository at this point in the history
Signed-off-by: David Crosby <[email protected]>
  • Loading branch information
dafyddcrosby committed Dec 17, 2024
1 parent 9881555 commit ed9334e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/mixlib/versioning.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def self.parse(version_string, format = nil)
# Attempt to parse from the most specific formats first.
parsed_version = nil
formats.each do |version|
begin
break parsed_version = version.new(version_string)
rescue Mixlib::Versioning::ParseError
next
end

break parsed_version = version.new(version_string)
rescue Mixlib::Versioning::ParseError
next

end
parsed_version
end
Expand Down

0 comments on commit ed9334e

Please sign in to comment.