From 2dd462cc36b096263242497841009dcd763c4364 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 11 Aug 2025 14:52:53 +0200 Subject: [PATCH] cli/command/idresolver: use stdlib errors Signed-off-by: Sebastiaan van Stijn --- cli/command/idresolver/idresolver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } }