From bfbea8be269d66a1f73f1029f1019476c24749e1 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 23 Nov 2023 18:12:12 +0300 Subject: [PATCH] Style fix --- Library/Homebrew/formula_creator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 14ea817481..043083bc65 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -50,7 +50,8 @@ module Homebrew end def write_formula! - raise "name should not be empty" if @name.to_s == '' + raise "name should not be empty" if @name.to_s == "" + path = @tap.new_formula_path(@name) raise "#{path} already exists" if path.exist?