Skip to content

Commit e4f08b2

Browse files
committed
Use AddResponse instead of AddResponseData when no error checking is performed
1 parent 21e239e commit e4f08b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/tv-app/android/java/ContentAppCommandDelegate.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
197197
}
198198
else
199199
{
200-
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, launchResponse);
200+
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, launchResponse);
201201
}
202202
break;
203203
}
@@ -211,7 +211,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
211211
}
212212
else
213213
{
214-
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, navigateTargetResponse);
214+
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, navigateTargetResponse);
215215
}
216216
break;
217217
}
@@ -225,7 +225,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
225225
}
226226
else
227227
{
228-
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, playbackResponse);
228+
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, playbackResponse);
229229
}
230230
break;
231231
}
@@ -244,7 +244,7 @@ void ContentAppCommandDelegate::FormatResponseData(CommandHandlerInterface::Hand
244244
}
245245
else
246246
{
247-
handlerContext.mCommandHandler.AddResponseData(handlerContext.mRequestPath, getSetupPINresponse);
247+
handlerContext.mCommandHandler.AddResponse(handlerContext.mRequestPath, getSetupPINresponse);
248248
}
249249
break;
250250
}

0 commit comments

Comments
 (0)