Skip to content

Commit

Permalink
Use AddResponse instead of AddResponseData when no error checking is …
Browse files Browse the repository at this point in the history
…performed (#33598)

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 4, 2024
1 parent e9c9c7e commit 546111f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/tv-app/android/java/ContentAppCommandDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
}
else
{
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, launchResponse);
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, launchResponse);
}
break;
}
Expand All @@ -211,7 +211,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
}
else
{
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, navigateTargetResponse);
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, navigateTargetResponse);
}
break;
}
Expand All @@ -225,7 +225,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
}
else
{
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, playbackResponse);
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, playbackResponse);
}
break;
}
Expand All @@ -244,7 +244,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
}
else
{
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, getSetupPINresponse);
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, getSetupPINresponse);
}
break;
}
Expand Down

0 comments on commit 546111f

Please sign in to comment.