Skip to content

Commit

Permalink
fix incorrect method call in ExistsThingPredicateVisitor;
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed May 31, 2022
1 parent 0c26901 commit 8e8e64b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public Predicate<Thing> visitFeatureProperties(final CharSequence featureId) {
public Predicate<Thing> visitFeatureDesiredProperties(final CharSequence featureId) {
return thing -> thing.getFeatures()
.flatMap(features -> features.getFeature(featureId.toString()))
.map(feature -> feature.getProperties().isPresent())
.map(feature -> feature.getDesiredProperties().isPresent())
.orElse(false);
}

Expand Down

0 comments on commit 8e8e64b

Please sign in to comment.