Skip to content

Commit

Permalink
Fix depth condition bug when only depth condition is configured.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 567080598
  • Loading branch information
MediaPipe Team authored and copybara-github committed Sep 20, 2023
1 parent 41a0127 commit 223641a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,8 @@ public Any convertToAnyProto() {
.setEdgeConditionTypeOptions(edgeConditionOptions().get().convertToProto())
.build())
.build());
if (depthConditionOptions().isPresent()) {
}
if (depthConditionOptions().isPresent()) {
taskOptionsBuilder.addControlPluginGraphsOptions(
ControlPluginGraphOptionsProto.ControlPluginGraphOptions.newBuilder()
.setBaseOptions(
Expand All @@ -695,7 +696,6 @@ public Any convertToAnyProto() {
depthConditionOptions().get().convertToProto())
.build())
.build());
}
}
return Any.newBuilder()
.setTypeUrl(
Expand Down

0 comments on commit 223641a

Please sign in to comment.