From 71104a27efffbc0badaeee2c4928cfc5f8b1f75f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 18 Dec 2020 19:14:11 +0100 Subject: [PATCH] Pass page directly instead of hash containing `:page`. --- Library/Homebrew/livecheck/strategy/page_match.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/strategy/page_match.rb b/Library/Homebrew/livecheck/strategy/page_match.rb index 92fa626b0a..e739f2a839 100644 --- a/Library/Homebrew/livecheck/strategy/page_match.rb +++ b/Library/Homebrew/livecheck/strategy/page_match.rb @@ -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