Skip to content

Commit 28c28b4

Browse files
committed
replacing get(0) with getFirst() for list
1 parent 0bd0c13 commit 28c28b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private RestAction<Message> useChatGptFallbackMessage(ThreadChannel threadChanne
205205
void writeHelpThreadToDatabase(long authorId, ThreadChannel threadChannel) {
206206

207207
Instant createdAt = Instant.now();
208-
String tag = threadChannel.getAppliedTags().get(0).getName();
208+
String tag = threadChannel.getAppliedTags().getFirst().getName();
209209

210210
database.write(content -> {
211211
HelpThreadsRecord helpThreadsRecord = content.newRecord(HelpThreads.HELP_THREADS)

0 commit comments

Comments
 (0)