mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Even simpler check for nil/empty string/etc.
This commit is contained in:
parent
426336a6ae
commit
812f953d39
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user