Skip to content

Conversation

eeaters
Copy link
Contributor

@eeaters eeaters commented Sep 2, 2025

  • Replace if-else null checks with Optional chain
  • Improve code readability and maintain functional style

Since ChatResponse::getResult equals ChatResponse.getResults().get(0), the else code block is unreachable.
Optimized the code to improve readability.

eeaters and others added 3 commits September 2, 2025 14:44
- Replace if-else null checks with Optional chain
- Improve code readability and maintain functional style

Signed-off-by: eeaters <[email protected]>
Signed-off-by: YuJie Wan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant