diff options
| author | Markus Reiter | 2016-09-20 22:03:08 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 15:30:06 +0200 |
| commit | 52ff98853068c03b3bfa777932da1da69e35e583 (patch) | |
| tree | 9a1da6ffe5d0054c4edaa321744b7ce1e685040a /Library/Homebrew/cxxstdlib.rb | |
| parent | db37920fa71060d8557dc83013c06f8ff61ef4a1 (diff) | |
| download | brew-52ff98853068c03b3bfa777932da1da69e35e583.tar.bz2 | |
Fix RuboCop CaseEquality.
Diffstat (limited to 'Library/Homebrew/cxxstdlib.rb')
| -rw-r--r-- | Library/Homebrew/cxxstdlib.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb index 1f629a8b2..ad859badd 100644 --- a/Library/Homebrew/cxxstdlib.rb +++ b/Library/Homebrew/cxxstdlib.rb @@ -16,7 +16,7 @@ class CxxStdlib if type && ![:libstdcxx, :libcxx].include?(type) raise ArgumentError, "Invalid C++ stdlib type: #{type}" end - klass = GNU_GCC_REGEXP === compiler.to_s ? GnuStdlib : AppleStdlib + klass = compiler.to_s =~ GNU_GCC_REGEXP ? GnuStdlib : AppleStdlib klass.new(type, compiler) end |
