Skip to content

Commit

Permalink
🐛 Fix blank file name bug for track icons
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Fihlon <[email protected]>
  • Loading branch information
McPringle committed Jun 14, 2024
1 parent fef05fe commit de6a73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/swiss/fihlon/apus/event/Track.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public enum Track {

Track(@NotNull final String trackName, @NotNull final String fileName) {
this.trackName = trackName;
this.fileName = FILE_NAME_TEMPLATE.formatted(fileName);
this.fileName = fileName.isBlank() ? "" : FILE_NAME_TEMPLATE.formatted(fileName);
}

@NotNull
Expand Down

0 comments on commit de6a73a

Please sign in to comment.