use empty string instead of nil

pull/176/head
Jacob Weinstock 2018-03-30 16:12:36 -06:00
parent d4e1f22cb7
commit 9df317513e
1 changed files with 2 additions and 2 deletions

View File

@ -99,12 +99,12 @@ func (c *DefaultClient) Digest(opts Opts) (digest string, err error) {
if os.Getenv(EnvInsecure) == "true" {
hub, err = registry.NewInsecure(opts.Registry, opts.Username, opts.Password)
if err != nil {
return
return "", err
}
} else {
hub, err = registry.New(opts.Registry, opts.Username, opts.Password)
if err != nil {
return
return "", err
}
}