aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-06-20 00:11:17 +0200
committerBaptiste Fontaine2015-06-20 12:13:26 +0200
commit8ef8f0f6153269aa071044d9c6df13628846ee94 (patch)
tree82ee19802e367f405d25a6ed2234897bf96a5dd4 /Library
parent05d9622c0298004f6cbfc678728cce7c32f38451 (diff)
downloadbrew-8ef8f0f6153269aa071044d9c6df13628846ee94.tar.bz2
sudo_check: don't use a set
This is unnecessary here because we use it only once. The difference won't be noticeable but the check is ~5 times faster now. Closes Homebrew/homebrew#40901. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 8b8376422..e9c9fe994 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -98,7 +98,7 @@ begin
cmd = aliases[cmd] if aliases[cmd]
- sudo_check = Set.new %w[ install link pin unpin upgrade ]
+ sudo_check = %w[ install link pin unpin upgrade ]
if sudo_check.include? cmd
if Process.uid.zero? and not File.stat(HOMEBREW_BREW_FILE).uid.zero?