Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
agutierrez8 committed Aug 7, 2023
1 parent 39f3c0c commit 4133e75
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ func canonicalizeQuery(query string) (canonicalQuery string, err error) {
continue
}
value := ""
if i := strings.Index(key, "="); i >= 0 {
key, value = key[:i], key[i+1:]
}
key, value, _ = strings.Cut(key, "=")
key, err1 := url.QueryUnescape(key)
if err1 != nil {
if err == nil {
Expand Down

0 comments on commit 4133e75

Please sign in to comment.