Skip to content

Commit

Permalink
utils/github: Use search_results_items method for code search
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Feb 25, 2023
1 parent 1edb59e commit 99d2bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/utils/github.rb
Expand Up @@ -61,7 +61,7 @@ def repository(user, repo)
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|
Expand Down

0 comments on commit 99d2bb9

Please sign in to comment.