Skip to content

Commit

Permalink
Merge pull request #1006 from citrusframework/bugfix/remove_duplicate…
Browse files Browse the repository at this point in the history
…_code

fix: Remove duplicate code
  • Loading branch information
bbortt authored Sep 29, 2023
2 parents 25f0913 + 49cd80c commit 7629b37
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 7629b37

Please sign in to comment.