Skip to content

Commit 464d790

Browse files
committed
Bugfix for time ranges with no data
1 parent 1d5583b commit 464d790

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/tophelper/TopHelpersCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public void onSlashCommand(@NotNull SlashCommandEvent event) {
7171

7272
if (topHelpers.isEmpty()) {
7373
event.reply("No entries for the selected time range.").queue();
74+
return;
7475
}
7576
event.deferReply().queue();
7677

0 commit comments

Comments
 (0)