Skip to content

Commit 5afcfa6

Browse files
authored
Update network.go
1 parent 6bb4126 commit 5afcfa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/network.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func NewAPIRequest(r *Request, api string, args []string, isAsync bool) (map[str
211211

212212
var encodedParams string
213213
var err error
214-
usingApiKeySecretKey := false
214+
usingAPIKeySecretKey := false
215215

216216
if len(r.Config.ActiveProfile.APIKey) > 0 && len(r.Config.ActiveProfile.SecretKey) > 0 {
217217
apiKey := r.Config.ActiveProfile.APIKey
@@ -231,7 +231,7 @@ func NewAPIRequest(r *Request, api string, args []string, isAsync bool) (map[str
231231
encodedParams = encodedParams + fmt.Sprintf("&signature=%s", url.QueryEscape(signature))
232232
params = nil
233233
}
234-
usingApiKeySecretKey = true
234+
usingAPIKeySecretKey = true
235235
} else if len(r.Config.ActiveProfile.Username) > 0 && len(r.Config.ActiveProfile.Password) > 0 {
236236
sessionKey, err := Login(r)
237237
if err != nil {
@@ -254,7 +254,7 @@ func NewAPIRequest(r *Request, api string, args []string, isAsync bool) (map[str
254254
}
255255
config.Debug("NewAPIRequest response status code:", response.StatusCode)
256256

257-
if response.StatusCode == http.StatusUnauthorized && !usingApiKeySecretKey {
257+
if response.StatusCode == http.StatusUnauthorized && !usingAPIKeySecretKey {
258258
r.Client().Jar, _ = cookiejar.New(nil)
259259
sessionKey, err := Login(r)
260260
if err != nil {

0 commit comments

Comments
 (0)