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

+4 -12
View File
@@ -18,18 +18,10 @@ import (
func New(t *testing.T, protocol int) *redis.Client {
var (
server, err = exec.LookPath("redis-server")
)
var (
directory string
)
var (
command *exec.Cmd
)
var (
client *redis.Client
)
var (
deadline time.Time
directory string
command *exec.Cmd
client *redis.Client
deadline time.Time
)
t.Helper()
if err != nil {
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.