diff options
| author | Martin Afanasjew | 2016-06-01 09:45:49 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-06-01 09:45:49 +0200 |
| commit | 8486f6e04d46323e3e17a71c4c8b3ce948d35bae (patch) | |
| tree | 99ae6e6b92d3f0cb804f1036868f2bfd8d36f3c3 /Library/Homebrew/utils | |
| parent | 8e728d6604720b75e1442e9c2ed5f10b780b58a4 (diff) | |
| download | brew-8486f6e04d46323e3e17a71c4c8b3ce948d35bae.tar.bz2 | |
Prefer $stderr over STDERR for consistency (#304)
Prior to this change there were only 3 instances of `STD(IN|OUT|ERR)`
versus 74 instances of `$std(in|out|err)` in the Homebrew code base. The
latter variant is also strongly suggested by bbatsov's Ruby Style Guide.
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/popen.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/popen.rb b/Library/Homebrew/utils/popen.rb index 64dee8ddf..76e67b3a9 100644 --- a/Library/Homebrew/utils/popen.rb +++ b/Library/Homebrew/utils/popen.rb @@ -20,7 +20,7 @@ module Utils return pipe.read end else - STDERR.reopen("/dev/null", "w") + $stderr.reopen("/dev/null", "w") exec(*args) end end |
