From 6e9209ca39fd928cb74bb95fdeab64ce4f6216af Mon Sep 17 00:00:00 2001 From: aixeshunter Date: Wed, 19 Dec 2018 09:52:24 +0800 Subject: [PATCH] Empty slice declaration via literal Signed-off-by: aixeshunter --- store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/store.go b/store/store.go index aa0fd02d..539924d9 100644 --- a/store/store.go +++ b/store/store.go @@ -68,7 +68,7 @@ func (a *Alerts) gc() { a.Lock() defer a.Unlock() - resolved := []*types.Alert{} + var resolved []*types.Alert for fp, alert := range a.c { if alert.Resolved() { delete(a.c, fp)