From fc0247fbab7c661d2aa8d57aeec3f5c8837174a4 Mon Sep 17 00:00:00 2001 From: Georg Reinke Date: Sat, 21 Sep 2024 19:46:01 +0200 Subject: [PATCH] fix(server_interfaces_test): remove unneeded fmt.Errorf use --- server_interfaces_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_interfaces_test.go b/server_interfaces_test.go index 96044a5..23d5802 100644 --- a/server_interfaces_test.go +++ b/server_interfaces_test.go @@ -1,7 +1,7 @@ package dbus import ( - "fmt" + "errors" "sync" "sync/atomic" "testing" @@ -83,7 +83,7 @@ func (t *tester) LookupMethod(name string) (Method, bool) { return t, true case "Error": return terrfn(func(in string) error { - return fmt.Errorf(in) + return errors.New(in) }), true case "Introspect": return intro_fn(func() string {