Skip to content

Commit 03dc940

Browse files
authored
Merge pull request #3000 from MAX-66/fix-output-bindings-code
Simplify outputBindings assignment logic in FunctionConfiguration
2 parents 29a3558 + 0065a65 commit 03dc940

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
@@ -923,9 +923,8 @@ private void createStandAloneBindingsIfNecessary(BindingServiceProperties bindin
923923
String[] inputBindings = StringUtils.hasText(bindingProperties.getInputBindings())
924924
? bindingProperties.getInputBindings().split(";") : new String[0];
925925

926-
String[] outputBindings = StringUtils.hasText(bindingProperties.getOutputBindings()) ? bindingProperties.getOutputBindings().split(";") : (
927-
StringUtils.hasText(bindingProperties.getOutputBindings()) ? bindingProperties.getOutputBindings().split(";") : new String[0]
928-
);
926+
String[] outputBindings = StringUtils.hasText(bindingProperties.getOutputBindings())
927+
? bindingProperties.getOutputBindings().split(";") : new String[0];
929928

930929
for (String inputBindingName : inputBindings) {
931930
FunctionInvocationWrapper sourceFunc = functionCatalog.lookup(inputBindingName);

0 commit comments

Comments
 (0)