diff options
| author | Mike McQuaid | 2017-05-29 18:24:52 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-05-29 18:43:18 +0100 |
| commit | 7a38bab333c6808022fe53aac2be9ca2e329cd53 (patch) | |
| tree | bbc05eebc29bdb6d539cd0e9d197b3762b49ffce /Library/Homebrew/cask/lib/hbc/exceptions.rb | |
| parent | 4356016b4a1c2eaba02680b4ad7f1747d2df53bf (diff) | |
| download | brew-7a38bab333c6808022fe53aac2be9ca2e329cd53.tar.bz2 | |
Fixup all RuboCop warnings.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/exceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/exceptions.rb b/Library/Homebrew/cask/lib/hbc/exceptions.rb index 14c52e94b..b9d305a9b 100644 --- a/Library/Homebrew/cask/lib/hbc/exceptions.rb +++ b/Library/Homebrew/cask/lib/hbc/exceptions.rb @@ -113,7 +113,7 @@ module Hbc end def to_s - "Cask '#{token}' definition is invalid" + (!submsg.empty? ? ": #{submsg}" : "") + "Cask '#{token}' definition is invalid#{": #{submsg}" unless submsg.empty?}" end end |
