From 4133e75ea86d6856585a42e52c4f339f391bf60e Mon Sep 17 00:00:00 2001 From: andres gutierrez Date: Mon, 7 Aug 2023 12:47:43 -0700 Subject: [PATCH] lint --- internal/auth.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/auth.go b/internal/auth.go index 4a570af..cb4d0cb 100644 --- a/internal/auth.go +++ b/internal/auth.go @@ -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 {