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
|
if @github
|
||||||
@desc = @github["description"]
|
@desc = @github["description"]
|
||||||
@homepage = if @github["homepage"].to_s.empty?
|
@homepage = if @github["homepage"].nil?
|
||||||
"https://github.com/#{@github["full_name"]}"
|
"https://github.com/#{@github["full_name"]}"
|
||||||
else
|
else
|
||||||
@github["homepage"]
|
@github["homepage"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user