Skip to content

Commit

Permalink
fix: fromCompression now returns a Zstandard
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Dec 19, 2023
1 parent 552d411 commit 4e88912
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public static ZarrCompressor fromCompression(final Compression compression) {
return useZlib != null && useZlib ? new Zlib((GzipCompression)compression) : new Gzip((GzipCompression)compression);
} else if (compression instanceof Bzip2Compression) {
return new Bz2((Bzip2Compression)compression);
} else if (compression instanceof ZstandardCompression) {
return new Zstandard((ZstandardCompression)compression);
} else {
return new Raw();
}
Expand Down

0 comments on commit 4e88912

Please sign in to comment.