aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorBen Muschol2017-08-14 11:08:56 -0400
committerBen Muschol2017-08-14 11:08:56 -0400
commit603bdd01a81e62d6b97a5da26d75d409e839a8fa (patch)
treed534aa61e61f803c2f294d84ec3257645a191cc8 /Library/Homebrew/cmd
parent24da1ecd3de86177f669072c542c9a01e6d6649d (diff)
downloadbrew-603bdd01a81e62d6b97a5da26d75d409e839a8fa.tar.bz2
Implement PR feedback
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/search.rb2
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"])