Fix linter errors (#4733)

This commit is contained in:
Gabe Kangas
2026-01-13 15:25:53 -08:00
committed by GitHub
parent 72621ea3c3
commit a272d8fbe3
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type TimestampedValue struct {
}
func makeTimestampedValuesFromDatapoints(dp []*tstorage.DataPoint) []TimestampedValue {
tv := []TimestampedValue{}
tv := make([]TimestampedValue, 0, len(dp))
for _, d := range dp {
tv = append(tv, TimestampedValue{Time: time.Unix(d.Timestamp, 0), Value: d.Value})
}