etcd: modify declaring empty slices

declare an empty slice to var s []int replace  s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices

Signed-off-by: demoManito <1430482733@qq.com>
This commit is contained in:
demoManito
2022-09-16 14:30:00 +08:00
parent b7ba0542f6
commit 72cf0cc04a
55 changed files with 106 additions and 104 deletions

View File

@ -36,7 +36,7 @@ var (
interruptRegisterMu, interruptExitMu sync.Mutex
// interruptHandlers holds all registered InterruptHandlers in order
// they will be executed.
interruptHandlers = []InterruptHandler{}
interruptHandlers []InterruptHandler
)
// RegisterInterruptHandler registers a new InterruptHandler. Handlers registered