diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-24 20:27:09 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:55 +0900 |
commit | b95756c7a998311a2d4bbee94530c6ad83ab7d06 (patch) | |
tree | 48903a83bb2710efaff4d2d6f411d02e1514c5ad /lib/bundler/ui | |
parent | 4c2255fd5cd83799bd88ca3b8002000df54a5431 (diff) |
[bundler/bundler] Remove unnecessary condition
The builtin thor's color shell already checks this before printing, and
if not a tty, prints just the string without added color codes.
https://github.com/bundler/bundler/commit/4f62611c87
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 8e49fa5885..35da1edfc7 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -10,7 +10,7 @@ module Bundler attr_writer :shell def initialize(options = {}) - if options["no-color"] || !$stdout.tty? + if options["no-color"] Thor::Base.shell = Thor::Shell::Basic end @shell = Thor::Base.shell.new |