Merge pull request #19436 from Homebrew/livecheck/xorg-fix-empty-error

Xorg: Handle nil `:content` value
This commit is contained in:
Mike McQuaid 2025-03-06 15:46:16 +00:00 committed by GitHub
commit 4e996e01e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,9 +136,11 @@ module Homebrew
options:,
&block
)
content = match_data[:content]
return match_data if content.blank?
# 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
end