1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

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 14:52:53 +02:00
parent 4c89455378
commit 2dd462cc36

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")
}
}