style(go): 合并连续变量声明并明确规范约束
This commit is contained in:
1 parent
2492251a89
commit
5287321ca2
8 files changed
+42
-126
No files matched your search
@@ -38,12 +38,8 @@ func Safe(value any) any { return safe(value, 0) }
|
||||
func safe(value any, depth int) any {
|
||||
var (
|
||||
target any
|
||||
)
|
||||
var (
|
||||
data []byte
|
||||
)
|
||||
var (
|
||||
err error
|
||||
data []byte
|
||||
err error
|
||||
)
|
||||
if depth > 16 {
|
||||
return "[MAX DEPTH]"
|
||||
|
||||