From b2c0b4f91df0a0cdedca2ae12c7fa22590ff8095 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Tue, 10 Sep 2024 18:22:46 +0800 Subject: [PATCH] vet fixes, remove unused code --- pmtiles/bucket.go | 5 ----- pmtiles/bucket_test.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pmtiles/bucket.go b/pmtiles/bucket.go index d81b8cc..1095c98 100644 --- a/pmtiles/bucket.go +++ b/pmtiles/bucket.go @@ -227,11 +227,6 @@ func generationToEtag(generation int64) string { return strconv.FormatInt(generation, 10) } -func smithyErrorCode(errorCode string) int { - i, _ := strconv.Atoi(errorCode) - return i -} - func setProviderEtag(asFunc func(interface{}) bool, etag string) { var awsV2Req *s3.GetObjectInput var azblobReq *azblob.DownloadStreamOptions diff --git a/pmtiles/bucket_test.go b/pmtiles/bucket_test.go index 591cc7d..7bc4004 100644 --- a/pmtiles/bucket_test.go +++ b/pmtiles/bucket_test.go @@ -245,7 +245,7 @@ func TestSetProviderEtagAzure(t *testing.T) { } func TestGetProviderErrorStatusCode(t *testing.T) { - awsV2Err := &smithyHttp.ResponseError{Response: &smithyHttp.Response{&http.Response{ + awsV2Err := &smithyHttp.ResponseError{Response: &smithyHttp.Response{Response: &http.Response{ StatusCode: 500, Header: http.Header{}, }}}