Skip to content

Commit cd53268

Browse files
kakkoyunamberpixels
authored andcommitted
fix: replace fmt.Errorf with errors.New (prometheus#1689)
```shell prometheus/process_collector_darwin.go:28:25: fmt.Errorf can be replaced with errors.New (perfsprint) var notImplementedErr = fmt.Errorf("not implemented") ``` Signed-off-by: Kemal Akkoyun <[email protected]> Signed-off-by: Eugene <[email protected]>
1 parent 4aea2a1 commit cd53268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/process_collector_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525

2626
// notImplementedErr is returned by stub functions that replace cgo functions, when cgo
2727
// isn't available.
28-
var notImplementedErr = fmt.Errorf("not implemented")
28+
var notImplementedErr = errors.New("not implemented")
2929

3030
type memoryInfo struct {
3131
vsize uint64 // Virtual memory size in bytes

0 commit comments

Comments
 (0)