diff --git a/app/vmselect/prometheus/prometheus.go b/app/vmselect/prometheus/prometheus.go index 9d87fafc9..0ceeebc35 100644 --- a/app/vmselect/prometheus/prometheus.go +++ b/app/vmselect/prometheus/prometheus.go @@ -916,7 +916,7 @@ func removeEmptyValuesAndTimeseries(tss []netstorage.Result) []netstorage.Result dstValues := ts.Values[:0] // Do not re-use ts.Timestamps for dstTimestamps, since ts.Timestamps // may be shared among multiple time series. - dstTimestamps := make([]int64{}, 0, len(ts.Timestamps)) + dstTimestamps := make([]int64, 0, len(ts.Timestamps)) for j, v := range ts.Values { if math.IsNaN(v) { continue