style(go): 合并连续变量声明并明确规范约束

This commit is contained in:
zhangdeman committed 2026-11-27 23:36:02 -08:00
1 parent 2492251a89
commit 5287321ca2
8 files changed
+42 -126

No files matched your search

+2 -6
View File
@@ -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]"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.