Skip to content

Commit

Permalink
fix: replace fmt.Errorf with errors.New
Browse files Browse the repository at this point in the history
```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]>
  • Loading branch information
kakkoyun committed Nov 19, 2024
1 parent 291b0b0 commit c37baff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prometheus/process_collector_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

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

type memoryInfo struct {
vsize uint64 // Virtual memory size in bytes
Expand Down

0 comments on commit c37baff

Please sign in to comment.