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{}, }}}