From 7d0a0fbb7275346b1308eba832c93a4bd4426cd4 Mon Sep 17 00:00:00 2001 From: Kemal Akkoyun Date: Tue, 19 Nov 2024 18:13:52 +0100 Subject: [PATCH] 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 --- prometheus/process_collector_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/process_collector_darwin.go b/prometheus/process_collector_darwin.go index fb73117a1..6612adc0a 100644 --- a/prometheus/process_collector_darwin.go +++ b/prometheus/process_collector_darwin.go @@ -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