summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 20:27:09 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-24 20:27:09 +0200
commit4f62611c87533b3cb9cfc7133bbf775c65474e3f (patch)
tree5c7f43b57b4268746bde9d9484918e808bd6548d
parent44a3968dd92f596cf0ab1d2c207f7cbe0a784a15 (diff)
downloadbundler-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.rb2
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