Simplify nil check

This commit is contained in:
Marius Kleiner 2025-03-30 18:01:02 +02:00
parent 59b441e718
commit 426336a6ae

View File

@ -93,7 +93,7 @@ module Homebrew
if @github
@desc = @github["description"]
@homepage = if @github["homepage"].to_s.empty?
@homepage = if @github["homepage"].nil?
"https://github.com/#{@github["full_name"]}"
else
@github["homepage"]