mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 09:50:00 +08:00
chore: initialize some slice type variables (#4249)
This commit is contained in:
@@ -269,7 +269,7 @@ func (ew *errorWindow) add(reason string) {
|
||||
}
|
||||
|
||||
func (ew *errorWindow) String() string {
|
||||
var reasons []string
|
||||
reasons := make([]string, 0, ew.count)
|
||||
|
||||
ew.lock.Lock()
|
||||
// reverse order
|
||||
|
||||
Reference in New Issue
Block a user