Skip to content

Commit

Permalink
[#1228] undid adjusting CommandResponse.isOfExpectedResponseType to a…
Browse files Browse the repository at this point in the history
…lways be "true" for live responses

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Dec 13, 2021
1 parent cd8b7ed commit 00c16c3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ default JsonSchemaVersion getImplementedSchemaVersion() {
* @since 1.2.0
*/
default boolean isOfExpectedResponseType() {
return getDittoHeaders().getExpectedResponseTypes().contains(getResponseType()) ||
getDittoHeaders().getChannel().map("live"::equals).orElse(false);
return getDittoHeaders().getExpectedResponseTypes().contains(getResponseType());
}

/**
Expand Down

0 comments on commit 00c16c3

Please sign in to comment.