utils/github: Use search_results_items method for code search

This commit is contained in:
Issy Long 2023-02-25 21:57:50 +00:00
parent 1edb59e086
commit 99d2bb9a53
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -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|