Merge pull request #19654 from infogrind/fix_homepage
Correctly handle missing homepage in GitHub API response
This commit is contained in:
commit
50bdbd657d
@ -93,11 +93,7 @@ module Homebrew
|
|||||||
|
|
||||||
if @github
|
if @github
|
||||||
@desc = @github["description"]
|
@desc = @github["description"]
|
||||||
@homepage = if @github["homepage"].empty?
|
@homepage = @github["homepage"].presence || "https://github.com/#{@github["full_name"]}"
|
||||||
"https://github.com/#{@github["full_name"]}"
|
|
||||||
else
|
|
||||||
@github["homepage"]
|
|
||||||
end
|
|
||||||
@license = @github["license"]["spdx_id"] if @github["license"]
|
@license = @github["license"]["spdx_id"] if @github["license"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user