diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-24 20:27:09 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-24 20:27:09 +0200 |
commit | 4f62611c87533b3cb9cfc7133bbf775c65474e3f (patch) | |
tree | 5c7f43b57b4268746bde9d9484918e808bd6548d | |
parent | 44a3968dd92f596cf0ab1d2c207f7cbe0a784a15 (diff) | |
download | bundler-4f62611c87533b3cb9cfc7133bbf775c65474e3f.tar.gz |
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.
-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 |