Skip to content

Commit 0e00a05

Browse files
committed
fix: add missing return statement
1 parent 9c9b6d4 commit 0e00a05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/chatgpt/ChatGptService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,7 @@ private Optional<String> getMessageResponse(String message) {
178178
logger.warn("There was an error using the OpenAI API: {}",
179179
runtimeException.getMessage());
180180
}
181+
182+
return Optional.empty();
181183
}
182184
}

0 commit comments

Comments
 (0)