Skip to content

Commit 23ddf23

Browse files
committed
fix lint error
1 parent aae42e4 commit 23ddf23

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

cmd/network.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,13 @@ func detectSignatureAlgorithm(r *Request) (string, error) {
386386
config.Debug("Selected API signature algorithm:", algorithm)
387387
persistDetectedSignatureAlgorithm(r, algorithm)
388388
return algorithm, nil
389+
}
390+
lastErr = err
391+
if isAuthenticationFailure(response.StatusCode, err) {
392+
config.Debug("API signature algorithm probe failed authentication for ", algorithm, ": ", err)
389393
} else {
390-
lastErr = err
391-
if isAuthenticationFailure(response.StatusCode, err) {
392-
config.Debug("API signature algorithm probe failed authentication for ", algorithm, ": ", err)
393-
} else {
394-
config.Debug("API signature algorithm probe failed with non-authentication error for ", algorithm, ": ", err)
395-
return "", err
396-
}
394+
config.Debug("API signature algorithm probe failed with non-authentication error for ", algorithm, ": ", err)
395+
return "", err
397396
}
398397
}
399398

0 commit comments

Comments
 (0)