Moved return statement out of log.isDebugEnabled() condition

This commit is contained in:
Tim Ysewyn
2021-12-15 11:00:46 +01:00
parent c05a5d8175
commit 195d853714

View File

@@ -47,6 +47,7 @@ import org.springframework.messaging.support.MessageHeaderAccessor;
*
* @author Marcin Grzejszczak
* @author Oleg Zhurakousky
* @author Tim Ysewyn
* @since 3.0.0
*/
public class TraceFunctionAroundWrapper extends FunctionAroundWrapper
@@ -126,8 +127,8 @@ public class TraceFunctionAroundWrapper extends FunctionAroundWrapper
if (log.isDebugEnabled()) {
log.debug("Target function [" + targetFunction.getFunctionDefinition() + "] has raw input type ["
+ itemType + "] and should be [" + Message.class + "]. Will not wrap it.");
return targetFunction.apply(messageStream);
}
return targetFunction.apply(messageStream);
}
Publisher<Message> messagePublisher = messageStream;
if (FunctionTypeUtils.isMono(targetFunction.getInputType())) {