Skip to content

Commit

Permalink
JZarrServiceImpl: Correct protocol check
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault committed May 10, 2024
1 parent 50ffec1 commit 45736c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loci/formats/services/JZarrServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public JZarrServiceImpl(String root) {
checkClassDependency(com.bc.zarr.ZarrArray.class);
if (root != null && (root.toLowerCase().contains("s3:") || root.toLowerCase().contains("s3."))) {
String[] pathSplit = root.toString().split(File.separator);
if (!S3FileSystemStore.ENDPOINT_PROTOCOL.contains(pathSplit[0].toLowerCase())) {
if (S3FileSystemStore.ENDPOINT_PROTOCOL.contains(pathSplit[0].toLowerCase())) {
s3fs = new S3FileSystemStore(Paths.get(root));
}
else {
Expand Down

0 comments on commit 45736c7

Please sign in to comment.