Skip to content

Commit

Permalink
autolint
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-maynard committed Oct 4, 2024
1 parent 0647980 commit 9ffbe51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Locale;

import org.jetbrains.annotations.NotNull;

/**
Expand All @@ -44,7 +43,8 @@ public String getFileIoImplClassName() {

@Override
public void validatePrefixForStorageType(String loc) {
if (getStorageType().getPrefixes().stream().noneMatch(p -> loc.toLowerCase(Locale.ROOT).startsWith(p))
if (getStorageType().getPrefixes().stream()
.noneMatch(p -> loc.toLowerCase(Locale.ROOT).startsWith(p))
&& !loc.startsWith("file:/")
&& !loc.startsWith("/")
&& !loc.equals("*")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ protected void validatePrefixForStorageType(String loc) {
throw new IllegalArgumentException(
String.format(
"Location prefix not allowed: '%s', expected prefixes: '%s'",
loc,
String.join(",", storageType.prefixes)));
loc, String.join(",", storageType.prefixes)));
}
}

Expand Down

0 comments on commit 9ffbe51

Please sign in to comment.