Pass page directly instead of hash containing :page.
This commit is contained in:
parent
1a18742366
commit
71104a27ef
@ -50,8 +50,7 @@ module Homebrew
|
|||||||
page = Strategy.page_contents(url)
|
page = Strategy.page_contents(url)
|
||||||
|
|
||||||
if block
|
if block
|
||||||
data = { page: page }
|
case (value = block.call(page))
|
||||||
case (value = block.call(data))
|
|
||||||
when String
|
when String
|
||||||
return [value]
|
return [value]
|
||||||
when Array
|
when Array
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user