diff options
| author | Ben Muschol | 2017-08-14 11:08:56 -0400 |
|---|---|---|
| committer | Ben Muschol | 2017-08-14 11:08:56 -0400 |
| commit | 603bdd01a81e62d6b97a5da26d75d409e839a8fa (patch) | |
| tree | d534aa61e61f803c2f294d84ec3257645a191cc8 /Library/Homebrew/cmd | |
| parent | 24da1ecd3de86177f669072c542c9a01e6d6649d (diff) | |
| download | brew-603bdd01a81e62d6b97a5da26d75d409e839a8fa.tar.bz2 | |
Implement PR feedback
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 4607f6d1a..a133d0499 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -104,7 +104,7 @@ module Homebrew valid_dirnames = ["Formula", "HomebrewFormula", "Casks", "."].freeze matches = GitHub.search_code(user: ["Homebrew", "caskroom"], filename: query, extension: "rb") - Array(matches).map do |match| + matches.map do |match| dirname, filename = File.split(match["path"]) next unless valid_dirnames.include?(dirname) tap = Tap.fetch(match["repository"]["full_name"]) |
