diff --git a/cli/command/idresolver/idresolver.go b/cli/command/idresolver/idresolver.go index c64f96b25d..1b87edcdd3 100644 --- a/cli/command/idresolver/idresolver.go +++ b/cli/command/idresolver/idresolver.go @@ -5,10 +5,10 @@ package idresolver import ( "context" + "errors" "github.com/moby/moby/api/types/swarm" "github.com/moby/moby/client" - "github.com/pkg/errors" ) // IDResolver provides ID to Name resolution. @@ -50,7 +50,7 @@ func (r *IDResolver) get(ctx context.Context, t any, id string) (string, error) } return service.Spec.Annotations.Name, nil default: - return "", errors.Errorf("unsupported type") + return "", errors.New("unsupported type") } }