cli/command/idresolver: use stdlib errors

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-08-11 19:00:07 +02:00
parent 4c89455378
commit 2dd462cc36
+2 -2
View File
@@ -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")
}
}