From 5b3e2c7dda7c58a137cbe4c36b809c917af96ce7 Mon Sep 17 00:00:00 2001 From: xiekeyang Date: Tue, 9 Jun 2015 10:07:48 +0800 Subject: [PATCH] Registry: remove unwanted return variable name Signed-off-by: xiekeyang --- docs/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/token.go b/docs/token.go index e27cb6f52..d91bd4550 100644 --- a/docs/token.go +++ b/docs/token.go @@ -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")