do InfoF is user specified JSON

pull/10603/head
Steven Powell 2021-02-25 16:16:10 -07:00
parent 4d3f11bfb0
commit 07e41b3dcf
1 changed files with 1 additions and 4 deletions

View File

@ -95,10 +95,7 @@ func Step(st style.Enum, format string, a ...V) {
// Styled writes a stylized and templated message to stdout
func Styled(st style.Enum, format string, a ...V) {
if JSON {
return
}
if st == style.Option {
if JSON || st == style.Option {
Infof(format, a...)
return
}