Empty slice declaration via literal
Signed-off-by: aixeshunter <aixeshunter@gmail.com>
This commit is contained in:
parent
4deb083823
commit
6e9209ca39
|
@ -68,7 +68,7 @@ func (a *Alerts) gc() {
|
||||||
a.Lock()
|
a.Lock()
|
||||||
defer a.Unlock()
|
defer a.Unlock()
|
||||||
|
|
||||||
resolved := []*types.Alert{}
|
var resolved []*types.Alert
|
||||||
for fp, alert := range a.c {
|
for fp, alert := range a.c {
|
||||||
if alert.Resolved() {
|
if alert.Resolved() {
|
||||||
delete(a.c, fp)
|
delete(a.c, fp)
|
||||||
|
|
Loading…
Reference in New Issue