aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAlyssa Ross2016-11-14 12:28:45 +0000
committerAlyssa Ross2016-11-14 12:28:45 +0000
commit14099ffaf3016f126ad95c869ac5dbecf5837eee (patch)
treed8b9f5bd3b925cd1a3ac768efe112822130015ee /Library/Homebrew/utils.rb
parent3c310b2e3dd7805b04f48507c65c2c0a856c2aa2 (diff)
downloadbrew-14099ffaf3016f126ad95c869ac5dbecf5837eee.tar.bz2
utils: fix capture_stderr style
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 68557474d..7a7673d01 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -377,7 +377,8 @@ ensure
end
def capture_stderr
- old, $stderr = $stderr, StringIO.new
+ old = $stderr
+ $stderr = StringIO.new
yield
$stderr.string
ensure