Skip to content

Commit

Permalink
ignore the emptystring for prefixed buckets [#38]
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Nov 12, 2023
1 parent 17c373d commit 73749eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmtiles/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func OpenBucket(ctx context.Context, bucketURL string, bucketPrefix string) (Buc
if err != nil {
return nil, err
}
if bucketPrefix != "/" && bucketPrefix != "." {
if bucketprefix != "" && bucketPrefix != "/" && bucketPrefix != "." {

Check failure on line 123 in pmtiles/bucket.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

undefined: bucketprefix
bucket = blob.PrefixedBucket(bucket, path.Clean(bucketPrefix)+string(os.PathSeparator))
}
wrapped_bucket := BucketAdapter{bucket}
Expand Down

0 comments on commit 73749eb

Please sign in to comment.