spring-projects / spring-data-jpa

Simplifies the development of creating a JPA-based data access layer.
https://spring.io/projects/spring-data-jpa/
Apache License 2.0
2.98k stars 1.41k forks source link

Code Simplification: Removed unnecessary else clause in if statement in AbstractJpaQuery, EqlQueryRenderer, JpaEntityInformationSupport #3414

Closed chs98412 closed 5 months ago

chs98412 commented 6 months ago

Hello! This PR aims to simplify the code by removing the unnecessary else clause in the if statement. While I was looking through AbstractJpaQuery, EqlQueryRender, and JpaEntityInformationSupport, I discovered an unnecessary else syntax and suggested pr similar to before. I think the else clauses can be safely removed without affecting the logic. Your review and feedback on the changes would be greatly appreciated. Thank you!

mp911de commented 5 months ago

Thanks for your suggestion. The affected code uses consistently if … if else … else styling and we want to keep it that way.