Skip to content

Commit f0dce41

Browse files
committed
style(client): correct spelling errors
1 parent 84e3e7b commit f0dce41

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

client/cmd/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func Register(controller string, username string, password string, email string,
2929
return err
3030
}
3131

32-
if err = client.CheckConection(httpClient, controllerURL); err != nil {
32+
if err = client.CheckConnection(httpClient, controllerURL); err != nil {
3333
return err
3434
}
3535

@@ -115,7 +115,7 @@ func Login(controller string, username string, password string, sslVerify bool)
115115
return err
116116
}
117117

118-
if err = client.CheckConection(httpClient, controllerURL); err != nil {
118+
if err = client.CheckConnection(httpClient, controllerURL); err != nil {
119119
return err
120120
}
121121

client/controller/client/http.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (c Client) Request(method string, path string, body []byte) (*http.Response
6161
return nil, err
6262
}
6363

64-
checkAPICompatability(res.Header.Get("DEIS_API_VERSION"))
64+
checkAPICompatibility(res.Header.Get("DEIS_API_VERSION"))
6565

6666
return res, nil
6767
}
@@ -152,8 +152,8 @@ func checkForErrors(res *http.Response, body string) error {
152152
return errors.New(errorMessage)
153153
}
154154

155-
// CheckConection checks that the user is connected to a network and the URL points to a valid controller.
156-
func CheckConection(client *http.Client, controllerURL url.URL) error {
155+
// CheckConnection checks that the user is connected to a network and the URL points to a valid controller.
156+
func CheckConnection(client *http.Client, controllerURL url.URL) error {
157157
errorMessage := `%s does not appear to be a valid Deis controller.
158158
Make sure that the Controller URI is correct and the server is running.`
159159

@@ -180,7 +180,7 @@ Make sure that the Controller URI is correct and the server is running.`
180180
return fmt.Errorf(errorMessage, baseURL)
181181
}
182182

183-
checkAPICompatability(res.Header.Get("DEIS_API_VERSION"))
183+
checkAPICompatibility(res.Header.Get("DEIS_API_VERSION"))
184184

185185
return nil
186186
}

client/controller/client/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TestCheckConnection(t *testing.T) {
109109

110110
httpClient := CreateHTTPClient(false)
111111

112-
if err = CheckConection(httpClient, *u); err != nil {
112+
if err = CheckConnection(httpClient, *u); err != nil {
113113
t.Error(err)
114114
}
115115
}

client/controller/client/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func locateSettingsFile() string {
1818
return path.Join(FindHome(), ".deis", filename+".json")
1919
}
2020

21-
func checkAPICompatability(serverAPIVersion string) {
21+
func checkAPICompatibility(serverAPIVersion string) {
2222
if serverAPIVersion != version.APIVersion {
2323
fmt.Printf(`! WARNING: Client and server API versions do not match. Please consider upgrading.
2424
! Client version: %s

0 commit comments

Comments
 (0)