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:
parent
4c2255fd5c
commit
b95756c7a9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue