Skip to content

Commit

Permalink
Suggestion by @MikeMcQuaid
Browse files Browse the repository at this point in the history
"ActiveSupport adds blank? to NilClass."
  • Loading branch information
abitrolly committed Nov 23, 2023
1 parent bfbea8b commit 4063675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/formula_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def head?
end

def write_formula!
raise "name should not be empty" if @name.to_s == ""
raise ArgumentError, "name is blank!" if @name.blank?
raise ArgumentError, "tap is blank!" if @tap.blank?

path = @tap.new_formula_path(@name)
raise "#{path} already exists" if path.exist?
Expand Down

0 comments on commit 4063675

Please sign in to comment.