diff --git a/src/main/java/net/szum123321/textile_backup/commands/FileSuggestionProvider.java b/src/main/java/net/szum123321/textile_backup/commands/FileSuggestionProvider.java index d7fcea5..120e5a7 100644 --- a/src/main/java/net/szum123321/textile_backup/commands/FileSuggestionProvider.java +++ b/src/main/java/net/szum123321/textile_backup/commands/FileSuggestionProvider.java @@ -34,9 +34,7 @@ import java.util.concurrent.CompletableFuture; public final class FileSuggestionProvider implements SuggestionProvider { private static final FileSuggestionProvider INSTANCE = new FileSuggestionProvider(); - public static FileSuggestionProvider Instance() { - return INSTANCE; - } + public static FileSuggestionProvider Instance() { return INSTANCE; } @Override public CompletableFuture getSuggestions(CommandContext ctx, SuggestionsBuilder builder) { @@ -47,14 +45,14 @@ public final class FileSuggestionProvider implements SuggestionProvider { public LocalDateTime getCreationTime() { return creationTime; } - public String getComment() { return comment; } + public Optional getComment() { return Optional.ofNullable(comment); } @Override public int compareTo(@NotNull RestoreableFile o) { return creationTime.compareTo(o.creationTime); }