Skip to content

Commit

Permalink
Fix handling version
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Oct 1, 2024
1 parent 44af815 commit db4f149
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def self.validate_new_version(version)
def self.format_version(version)
user_version = nil

unless version.nil?
unless version.to_s.empty?
version_numbers = version.split('.')
version_numbers[3] = 0
version_numbers.map! { |element| element.nil? ? 0 : element }
Expand Down

0 comments on commit db4f149

Please sign in to comment.