Skip to content

Commit e46b93f

Browse files
Fix Linux tv-casting-app build issue by removing unneeded comparison condition that always return true in simple-app-helper.cpp:392.
1 parent 8819050 commit e46b93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tv-casting-app/linux/simple-app-helper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ CHIP_ERROR CommandHandler(int argc, char ** argv)
389389
unsigned long index = static_cast<unsigned long>(strtol(argv[1], &eptr, 10));
390390
std::vector<matter::casting::memory::Strong<matter::casting::core::CastingPlayer>> castingPlayers =
391391
matter::casting::core::CastingPlayerDiscovery::GetInstance()->GetCastingPlayers();
392-
VerifyOrReturnValue(0 <= index && index < castingPlayers.size(), CHIP_ERROR_INVALID_ARGUMENT,
392+
VerifyOrReturnValue(index < castingPlayers.size(), CHIP_ERROR_INVALID_ARGUMENT,
393393
ChipLogError(AppServer, "Invalid casting player index provided: %lu", index));
394394
targetCastingPlayer = castingPlayers.at(index);
395395

0 commit comments

Comments
 (0)