Skip to content

Commit

Permalink
fix: Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Schlathoelter committed Sep 28, 2023
1 parent 25f0913 commit 49cd80c
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,6 @@ protected void validateMessage(Message message, TestContext context) {
logger.debug("Control message:\n" + controlMessage.print(context));
}

if (StringUtils.hasText(controlMessage.getName())) {
context.getMessageStore().storeMessage(controlMessage.getName(), message);
} else {
context.getMessageStore().storeMessage(context.getMessageStore().constructMessageName(this, getOrCreateEndpoint(context)), message);
}

if (!CollectionUtils.isEmpty(validators)) {
for (MessageValidator<? extends ValidationContext> messageValidator : validators) {
messageValidator.validateMessage(message, controlMessage, context, validationContexts);
Expand Down

0 comments on commit 49cd80c

Please sign in to comment.