refactor: clean code

This commit is contained in:
Fu Diwei
2025-02-21 17:28:58 +08:00
parent f81fa2eb63
commit 97356328be
7 changed files with 32 additions and 20 deletions

View File

@@ -35,8 +35,8 @@ func (l *DefaultLogger) Logt(tag string, data ...any) {
reflect.Float32, reflect.Float64:
s = fmt.Sprintf("%v", v)
default:
jsonData, _ := json.Marshal(v)
s = string(jsonData)
jbytes, _ := json.Marshal(v)
s = string(jbytes)
}
}