浏览代码

Registry: remove unwanted return variable name

Signed-off-by: xiekeyang <xiekeyang@huawei.com>
xiekeyang 10 年之前
父节点
当前提交
a31be25121
共有 1 个文件被更改,包括 1 次插入1 次删除
  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")