diff --git a/registry/registry.go b/registry/registry.go index aa08b7bc..20f0f0f3 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -26,7 +26,7 @@ type Repository struct { // Client - generic docker registry client type Client interface { Get(opts Opts) (*Repository, error) - Digest(opts Opts) (digest string, err error) + Digest(opts Opts) (string, error) } // New - new registry client @@ -82,7 +82,7 @@ func (c *DefaultClient) Get(opts Opts) (*Repository, error) { } // Digest - get digest for repo -func (c *DefaultClient) Digest(opts Opts) (digest string, err error) { +func (c *DefaultClient) Digest(opts Opts) (string, error) { if opts.Tag == "" { return "", ErrTagNotSupplied }