Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify outputBindings assignment logic in FunctionConfiguration #3000

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

MAX-66
Copy link

@MAX-66 MAX-66 commented Sep 5, 2024

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.

- Removed redundant checks and method calls for outputBindings.
- Improved readability and reduced code complexity.
@olegz olegz merged commit 03dc940 into spring-cloud:main Sep 23, 2024
1 check passed
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.

2 participants