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