Merge pull request #2732 from gliptak/patch-1
Correct redundant nil check
This commit is contained in:
commit
a4b6522e11
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user