spring-cloud / spring-cloud-stream

Framework for building Event-Driven Microservices
http://cloud.spring.io/spring-cloud-stream
Apache License 2.0
993 stars 606 forks source link

Simplify outputBindings assignment logic in FunctionConfiguration #3000

Closed MAX-66 closed 1 week ago

MAX-66 commented 3 weeks ago

This PR simplifies the logic for assigning outputBindings in the FunctionConfiguration file by eliminating redundant checks and method calls. The original implementation checked bindingProperties.getOutputBindings() twice, which was unnecessary and could lead to confusion. The updated version performs the check once, reducing the code complexity and improving readability.