Skip to content

Commit

Permalink
vet fixes, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Sep 10, 2024
1 parent c1bb8ee commit b2c0b4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions pmtiles/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pmtiles/bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}}}
Expand Down

0 comments on commit b2c0b4f

Please sign in to comment.