Skip to content

Commit

Permalink
[Java] Remove unnecessary indentation in DispatcherImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Reuter authored and guidoostkampdebertrandtcom committed Mar 31, 2020
1 parent 530c139 commit 3874bc0
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,14 @@ private MessagingQosEffort getEffort(final ImmutableMessage message) {
String effortString = message.getEffort();
if (effortString == null) {
return null;
} else {
try {
return MessagingQosEffort.valueOf(effortString);
} catch (IllegalArgumentException e) {
logger.error("received message (id: {}) with invalid effort: {}. Using default effort for reply message.",
message.getId(),
effortString);
return null;
}
}
try {
return MessagingQosEffort.valueOf(effortString);
} catch (IllegalArgumentException e) {
logger.error("received message (id: {}) with invalid effort: {}. Using default effort for reply message.",
message.getId(),
effortString);
return null;
}
}

Expand Down

0 comments on commit 3874bc0

Please sign in to comment.