diff options
| author | Markus Reiter | 2016-09-23 17:17:49 +0200 |
|---|---|---|
| committer | GitHub | 2016-09-23 17:17:49 +0200 |
| commit | 246bb1a3b18cf41c2499cc78b7eac8fab503c5d6 (patch) | |
| tree | 24c62806b60d59b0f9a689ac693a7afec5bd3291 /Library/Homebrew/cxxstdlib.rb | |
| parent | 4cbeb1e981e974474a0d37c120ffa18e13ac3db9 (diff) | |
| parent | fe2d51e0b9d4d9c138e512c245b1ed8d0f1dbf53 (diff) | |
| download | brew-246bb1a3b18cf41c2499cc78b7eac8fab503c5d6.tar.bz2 | |
Merge pull request #1050 from reitermarkus/rubocop
RuboCop changes.
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 |
