remove return variable names for Digest func

pull/176/head
Jacob Weinstock 2018-03-30 16:23:32 -06:00
parent b89c52ab48
commit 4a249ef026
1 changed files with 2 additions and 2 deletions

View File

@ -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
}