From 812f953d39ed1e60520044fa6f79f6b4e81fc8d7 Mon Sep 17 00:00:00 2001 From: Marius Kleiner Date: Sun, 30 Mar 2025 18:08:20 +0200 Subject: [PATCH] Even simpler check for nil/empty string/etc. --- Library/Homebrew/formula_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 1cf7286c53..4ab4146132 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -93,7 +93,7 @@ module Homebrew if @github @desc = @github["description"] - @homepage = if @github["homepage"].nil? + @homepage = if @github["homepage"].blank? "https://github.com/#{@github["full_name"]}" else @github["homepage"]