Skip to content

Commit

Permalink
fix(server_interfaces_test): remove unneeded fmt.Errorf use
Browse files Browse the repository at this point in the history
  • Loading branch information
guelfey committed Sep 21, 2024
1 parent ae4f490 commit 87555de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server_interfaces_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dbus

import (
"fmt"
"errors"
"sync"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 87555de

Please sign in to comment.