aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-08 16:04:52 -0500
committerJack Nagel2014-02-08 16:04:52 -0500
commitf7e1244e6d761aff3c1e0228e560efb6f73f8e75 (patch)
treecd70b3225df6ac9b4c804b5ed395d8352170d19a /Library
parentdae221bdb84cdc73170ed1395130595d9706b8fc (diff)
downloadbrew-f7e1244e6d761aff3c1e0228e560efb6f73f8e75.tar.bz2
Don't mutate argument in search_tap
Diffstat (limited to 'Library')
-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 bc079619d..476b24b49 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -104,7 +104,7 @@ module Homebrew extend self
results = []
GitHub.open "https://api.github.com/repos/#{user}/homebrew-#{repo}/git/trees/HEAD?recursive=1" do |f|
- user.downcase! if user == "Homebrew" # special handling for the Homebrew organization
+ user = user.downcase if user == "Homebrew" # special handling for the Homebrew organization
Utils::JSON.load(f.read)["tree"].map{ |hash| hash['path'] }.compact.each do |file|
name = File.basename(file, '.rb')
if file =~ /\.rb$/ and name =~ rx