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)
|
||||
|
||||
if block
|
||||
data = { page: page }
|
||||
case (value = block.call(data))
|
||||
case (value = block.call(page))
|
||||
when String
|
||||
return [value]
|
||||
when Array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user