Browse Source

Merge pull request #13816 from xiekeyang/remove

Registry: remove unwanted return variable name
Alexander Morozov 10 years ago
parent
commit
7f6aa3b783
1 changed files with 1 additions and 1 deletions
  1. 1 1
      registry/token.go

+ 1 - 1
registry/token.go

@@ -13,7 +13,7 @@ type tokenResponse struct {
 	Token string `json:"token"`
 	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"]
 	realm, ok := params["realm"]
 	if !ok {
 	if !ok {
 		return "", errors.New("no realm specified for token auth challenge")
 		return "", errors.New("no realm specified for token auth challenge")