From 99d2bb9a53745afd3b4c586dcc6afc4038e2dd4f Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 25 Feb 2023 21:57:50 +0000 Subject: [PATCH] utils/github: Use `search_results_items` method for code search --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 691bf4955e..a14f1c8850 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -61,7 +61,7 @@ module GitHub end def search_code(repo: nil, user: "Homebrew", path: ["Formula", "Casks", "."], filename: nil, extension: "rb") - matches = search("code", user: user, path: path, filename: filename, extension: extension, repo: repo) + matches = search_results_items("code", user: user, path: path, filename: filename, extension: extension, repo: repo) return matches if matches.blank? matches.map do |match|