Correct redundant nil check

Signed-off-by: Gábor Lipták <gliptak@gmail.com>
This commit is contained in:
Gábor Lipták 2018-10-18 22:00:26 -04:00
parent 133ac5cd2a
commit 4a0c40664a
No known key found for this signature in database
GPG Key ID: 8551785584B8BFFD

View File

@ -80,11 +80,7 @@ func (a *dockerAuthorizer) AddResponses(ctx context.Context, responses []*http.R
// TODO(dmcg): Store challenge, not token // TODO(dmcg): Store challenge, not token
// Move token fetching to authorize // Move token fetching to authorize
if err := a.setTokenAuth(ctx, host, c.parameters); err != nil { return a.setTokenAuth(ctx, host, c.parameters)
return err
}
return nil
} else if c.scheme == basicAuth { } else if c.scheme == basicAuth {
// TODO: Resolve credentials on authorize // TODO: Resolve credentials on authorize
username, secret, err := a.credentials(host) username, secret, err := a.credentials(host)