Merge pull request #19436 from Homebrew/livecheck/xorg-fix-empty-error
Xorg: Handle nil `:content` value
This commit is contained in:
commit
4e996e01e6
@ -136,9 +136,11 @@ module Homebrew
|
|||||||
options:,
|
options:,
|
||||||
&block
|
&block
|
||||||
)
|
)
|
||||||
|
content = match_data[:content]
|
||||||
|
return match_data if content.blank?
|
||||||
|
|
||||||
# Cache any new page content
|
# Cache any new page content
|
||||||
@page_data[generated_url] = match_data[:content] unless match_data[:content].empty?
|
@page_data[generated_url] = content unless cached_content
|
||||||
|
|
||||||
match_data
|
match_data
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user