diff options
| author | Mike McQuaid | 2016-09-17 15:17:27 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2016-09-17 16:14:13 +0100 | 
| commit | 6693915399a5d9f1f09255c5008d2cc1209f7662 (patch) | |
| tree | a4cf8f1f273ebf5679c418fbf896cf320a84ef76 /Library/Homebrew/development_tools.rb | |
| parent | 299dffd903182bd4ab65828ae2347d415de7b259 (diff) | |
| download | brew-6693915399a5d9f1f09255c5008d2cc1209f7662.tar.bz2 | |
rubocop --auto-correct all remaining files.
But remove some manual `.freeze`s on constants that shouldn't be
constants.
Diffstat (limited to 'Library/Homebrew/development_tools.rb')
| -rw-r--r-- | Library/Homebrew/development_tools.rb | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb index 93372bbc5..14e1a07f7 100644 --- a/Library/Homebrew/development_tools.rb +++ b/Library/Homebrew/development_tools.rb @@ -27,7 +27,11 @@ class DevelopmentTools      def default_cc        cc = DevelopmentTools.locate "cc" -      cc.realpath.basename.to_s rescue nil +      begin +        cc.realpath.basename.to_s +      rescue +        nil +      end      end      def default_compiler | 
