Registry: remove unwanted return variable name
Signed-off-by: xiekeyang <xiekeyang@huawei.com>
This commit is contained in:
parent
e527060df2
commit
5b3e2c7dda
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ type tokenResponse struct {
|
|||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
func getToken(username, password string, params map[string]string, registryEndpoint *Endpoint) (token string, err error) {
|
||||
func getToken(username, password string, params map[string]string, registryEndpoint *Endpoint) (string, error) {
|
||||
realm, ok := params["realm"]
|
||||
if !ok {
|
||||
return "", errors.New("no realm specified for token auth challenge")
|
||||
|
|
Loading…
Reference in a new issue