Skip to content

Commit

Permalink
make code analyzer happy (ydb-platform#12860)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny committed Jan 5, 2025
1 parent e2af1d5 commit 343ef9e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
namespace NKikimr::NOlap {

bool TPlanCompactionInfo::Finish() {
AFL_VERIFY(Count);
return --Count == 0;
if (Count > 0) {
return --Count == 0;
} else {
AFL_VERIFY(false);
return false;
}
}

} // namespace NKikimr::NOlap

0 comments on commit 343ef9e

Please sign in to comment.