diff options
author | Keiji Yoshimi <walf443@gmail.com> | 2017-09-23 16:45:58 +0900 |
---|---|---|
committer | Keiji Yoshimi <walf443@gmail.com> | 2017-09-24 15:04:39 +0900 |
commit | dc0f057d0a34f15ae69c220d06682f35266afbc7 (patch) | |
tree | 88425eb0793643a07185ade40e5f7aee6c3a0c2d /lib/bundler/ui | |
parent | 1b1db94e045cdf690bc93939612d17d7ee44c369 (diff) | |
download | bundler-dc0f057d0a34f15ae69c220d06682f35266afbc7.tar.gz |
improve rubocop_todo.yml
- Style/EmptyLinesAroundExceptionHandlingKeywords
- Style/SpaceAroundOperators
- Style/SpaceInsideBlockBraces
- Lint/DuplicateMethods
- Lint/Void
- Style/IfUnlessModifier
- Style/MixinGrouping
- Style/NestedParenthesizedCalls
- Style/OrAssignment
- Style/RedundantParentheses
- Style/TernaryParentheses
Diffstat (limited to 'lib/bundler/ui')
-rw-r--r-- | lib/bundler/ui/shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 3b3b6bfb53..fdf073ffb8 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -109,7 +109,7 @@ module Bundler end def tell_err(message, color = nil, newline = nil) - newline = message.to_s !~ /( |\t)\Z/ unless newline + newline ||= message.to_s !~ /( |\t)\Z/ message = word_wrap(message) if newline.is_a?(Hash) && newline[:wrap] color = nil if color && !$stderr.tty? |