Fix linter problem

This commit is contained in:
Hector Sanjuan 2021-01-14 00:18:16 +01:00
parent a53861c844
commit 7ea11da75f

View File

@ -392,7 +392,7 @@ func (c *Cluster) pushPingMetrics(ctx context.Context) {
// Alerts returns the last alerts recorded by this cluster peer with the most // Alerts returns the last alerts recorded by this cluster peer with the most
// recent first. // recent first.
func (c *Cluster) Alerts() []api.Alert { func (c *Cluster) Alerts() []api.Alert {
alerts := make([]api.Alert, len(c.alerts), len(c.alerts)) alerts := make([]api.Alert, len(c.alerts))
c.alertsMux.Lock() c.alertsMux.Lock()
{ {