Pass page directly instead of hash containing :page.

This commit is contained in:
Markus Reiter 2020-12-18 19:14:11 +01:00 committed by Sam Ford
parent 1a18742366
commit 71104a27ef
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -50,8 +50,7 @@ module Homebrew
page = Strategy.page_contents(url)
if block
data = { page: page }
case (value = block.call(data))
case (value = block.call(page))
when String
return [value]
when Array