Skip to content

Commit 722fc9e

Browse files
committed
nit(QuoteBoardForwarder): use Optional#orElseThrow for boardChannel
1 parent e16f7d8 commit 722fc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/basic/QuoteBoardForwarder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void onMessageReactionAdd(MessageReactionAddEvent event) {
8989
return;
9090
}
9191

92-
TextChannel boardChannel = boardChannelOptional.get();
92+
TextChannel boardChannel = boardChannelOptional.orElseThrow();
9393

9494
if (boardChannel.getId().equals(event.getChannel().getId())) {
9595
logger.debug("Someone tried to react with the react emoji to the quotes channel.");

0 commit comments

Comments
 (0)