Even simpler check for nil/empty string/etc.

This commit is contained in:
Marius Kleiner 2025-03-30 18:08:20 +02:00
parent 426336a6ae
commit 812f953d39

View File

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