From b95756c7a998311a2d4bbee94530c6ad83ab7d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 24 May 2019 20:27:09 +0200 Subject: [PATCH] [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 --- lib/bundler/ui/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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