diff --git a/pkg/client/s3/auth.go b/pkg/client/s3/auth.go index bebf6f59..111db32b 100644 --- a/pkg/client/s3/auth.go +++ b/pkg/client/s3/auth.go @@ -120,15 +120,6 @@ func (a *s3Client) signRequest(req *http.Request, host string) { req.Header.Set("Authorization", authHeader.String()) } -func firstNonEmptyString(strs ...string) string { - for _, s := range strs { - if s != "" { - return s - } - } - return "" -} - // From the Amazon docs: // // StringToSign = HTTP-Verb + "\n" + diff --git a/pkg/client/s3/client_test.go b/pkg/client/s3/client_test.go index a776c60a..9436b134 100644 --- a/pkg/client/s3/client_test.go +++ b/pkg/client/s3/client_test.go @@ -52,8 +52,6 @@ const ( iso8601Format = "2006-01-02T15:04:05.000Z" ) -var tc *s3Client - func TestParseBuckets(t *testing.T) { res := "\nownerIDFieldbobDisplayNamebucketOne2006-06-21T07:04:31.000ZbucketTwo2006-06-21T07:04:32.000Z" buckets, err := listAllMyBuckets(strings.NewReader(res))