Skip to content

Commit 0065a65

Browse files
author
lxq
committed
Simplify outputBindings logic in FunctionConfiguration
- Removed redundant checks and method calls for outputBindings. - Improved readability and reduced code complexity.
1 parent f456405 commit 0065a65

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/function/FunctionConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,8 @@ private void createStandAloneBindingsIfNecessary(BindingServiceProperties bindin
904904
String[] inputBindings = StringUtils.hasText(bindingProperties.getInputBindings())
905905
? bindingProperties.getInputBindings().split(";") : new String[0];
906906

907-
String[] outputBindings = StringUtils.hasText(bindingProperties.getOutputBindings()) ? bindingProperties.getOutputBindings().split(";") : (
908-
StringUtils.hasText(bindingProperties.getOutputBindings()) ? bindingProperties.getOutputBindings().split(";") : new String[0]
909-
);
907+
String[] outputBindings = StringUtils.hasText(bindingProperties.getOutputBindings())
908+
? bindingProperties.getOutputBindings().split(";") : new String[0];
910909

911910
for (String inputBindingName : inputBindings) {
912911
FunctionInvocationWrapper sourceFunc = functionCatalog.lookup(inputBindingName);

0 commit comments

Comments
 (0)