fix: replace fmt.Errorf with errors.New (#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 <kakkoyun@gmail.com>
This commit is contained in:
Kemal Akkoyun 2024-11-19 18:13:52 +01:00 committed by GitHub
parent 291b0b0c42
commit 7d0a0fbb72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ import (
// notImplementedErr is returned by stub functions that replace cgo functions, when cgo // notImplementedErr is returned by stub functions that replace cgo functions, when cgo
// isn't available. // isn't available.
var notImplementedErr = fmt.Errorf("not implemented") var notImplementedErr = errors.New("not implemented")
type memoryInfo struct { type memoryInfo struct {
vsize uint64 // Virtual memory size in bytes vsize uint64 // Virtual memory size in bytes