From 7ba51dbac2dad87aa01c46d2a2fa814b07740f7d Mon Sep 17 00:00:00 2001 From: Matt Burdan Date: Fri, 12 Apr 2019 20:35:54 -0700 Subject: [PATCH] Fix misspellings of the word credential Signed-off-by: Matt Burdan --- src/chartserver/client.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/chartserver/client.go b/src/chartserver/client.go index b0c5ff7fe..19c722c12 100644 --- a/src/chartserver/client.go +++ b/src/chartserver/client.go @@ -23,12 +23,12 @@ type ChartClient struct { httpClient *http.Client // Auth info - credentail *Credential + credential *Credential } // NewChartClient is constructor of ChartClient -// credentail can be nil -func NewChartClient(credentail *Credential) *ChartClient { // Create http client with customized timeouts +// credential can be nil +func NewChartClient(credential *Credential) *ChartClient { // Create http client with customized timeouts client := &http.Client{ Timeout: clientTimeout, Transport: &http.Transport{ @@ -39,7 +39,7 @@ func NewChartClient(credentail *Credential) *ChartClient { // Create http client return &ChartClient{ httpClient: client, - credentail: credentail, + credential: credential, } } @@ -82,8 +82,8 @@ func (cc *ChartClient) sendRequest(addr string, method string, body io.Reader, e } // Set basic auth - if cc.credentail != nil { - request.SetBasicAuth(cc.credentail.Username, cc.credentail.Password) + if cc.credential != nil { + request.SetBasicAuth(cc.credential.Username, cc.credential.Password) } response, err := cc.httpClient.Do(request)