1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
David Rodríguez 2019-05-24 20:27:09 +02:00 committed by Hiroshi SHIBATA
parent 4c2255fd5c
commit b95756c7a9
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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