Skip to content

Commit

Permalink
Fixed a bug where the result of converting a maven coordinate to a re…
Browse files Browse the repository at this point in the history
…lative path would incorrectly start with a slash if the prefix directory was an empty string.
  • Loading branch information
Aklakan committed Feb 29, 2024
1 parent 7cc25a9 commit 5c668da
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ public static String toPath(
: null
;

// Empty prefix is treated as if it was null
if (prefix != null && prefix.isEmpty()) {
prefix = null;
}

String pathStr = includeDirectories ? toPath(entity) : null;
String fileName = includeFileName ? toFileName(entity) : null;

Expand Down

0 comments on commit 5c668da

Please sign in to comment.