[ruby/syntax_suggest] standardrb --fix-unsafely spec/spec_helper.rb

https://github.com/ruby/syntax_suggest/commit/6e266b3b2b
This commit is contained in:
Hiroshi SHIBATA 2023-04-06 16:42:56 +09:00
Родитель 9ccf0a066d
Коммит f77dc6fb16
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -18,7 +18,7 @@ RSpec.configure do |config|
end
if config.color_mode == :automatic
if config.color_enabled? and (ENV["TERM"] == "dumb" or ENV["NO_COLOR"]&.slice(0))
if config.color_enabled? && ((ENV["TERM"] == "dumb") || ENV["NO_COLOR"]&.slice(0))
config.color_mode = :off
end
end