Merge pull request #11243 from andriyDev/RawMode

Fix out stylized function formatting with an empty map instead of nothing.
pull/11217/head
Medya Ghazizadeh 2021-05-03 10:57:08 -07:00 committed by GitHub
commit 4ba1901a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func applyStyle(st style.Enum, useColor bool, format string) (string, bool) {
func stylized(st style.Enum, useColor bool, format string, a ...V) (string, bool) {
var spinner bool
if a == nil {
a = []V{{}}
a = []V{}
}
format, spinner = applyStyle(st, useColor, format)
return Fmt(format, a...), spinner