Skip to content

Commit

Permalink
cppcheck: Fix "condition is always true" warning.
Browse files Browse the repository at this point in the history
The chain of if clauses has already tested and handled the cases where
"thisScore" is negative and zero, therefore there is no need to test
for a positive value.
  • Loading branch information
linuxdude42 committed Jul 10, 2022
1 parent 48ab254 commit 11bf7d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/programs/mythcommflag/ClassicCommDetector.cpp
Expand Up @@ -1737,8 +1737,8 @@ void ClassicCommDetector::BuildAllMethodsCommList(void)
}
}
}
else if ((thisScore > 0) &&
(lastScore < 0) &&
// thisScore > 0
else if ((lastScore < 0) &&
(breakStart != -1))
{
if (((fbp->start - breakStart) >
Expand Down

0 comments on commit 11bf7d0

Please sign in to comment.