Skip to content

Commit

Permalink
Merge pull request #17852 from Homebrew/software-spec-error-clarify
Browse files Browse the repository at this point in the history
software_spec: remove confusing missing version error
  • Loading branch information
Bo98 committed Jul 25, 2024
2 parents e6348b1 + bbdf52c commit eda3039
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Library/Homebrew/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def owner=(owner)
resources.each_value do |r|
r.owner = self
next if r.version

raise "#{full_name}: version missing for \"#{r.name}\" resource!" if version.nil?
next if version.nil?

r.version(version.head? ? Version.new("HEAD") : version.dup)
end
Expand Down

0 comments on commit eda3039

Please sign in to comment.