Skip to content

Commit 499a0b6

Browse files
committed
Fix perfsprint lint: use errors.New for static message
1 parent 40b8062 commit 499a0b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/metrics/metrics.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package metrics
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"os"
78

@@ -239,7 +240,7 @@ func (m *MetricsEmitter) EmitSaturationMetrics(
239240
) error {
240241
if saturationUtilization == nil || spareCapacity == nil || requiredCapacity == nil ||
241242
kvCacheTokensUsed == nil || kvCacheTokensTotal == nil {
242-
return fmt.Errorf("saturation metrics not initialized")
243+
return errors.New("saturation metrics not initialized")
243244
}
244245

245246
accelLabels := prometheus.Labels{

0 commit comments

Comments
 (0)