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 9, 2024
1 parent 1ca55fd commit 1061847
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 1061847

Please sign in to comment.