Empty slice declaration via literal

Signed-off-by: aixeshunter <aixeshunter@gmail.com>
This commit is contained in:
aixeshunter 2018-12-19 09:52:24 +08:00
parent 4deb083823
commit 6e9209ca39
1 changed files with 1 additions and 1 deletions

View File

@ -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)