Skip to content

Commit 1c38970

Browse files
authored
make code analyzer happy (#12860)
1 parent a3f859c commit 1c38970

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
namespace NKikimr::NOlap {
66

77
bool TPlanCompactionInfo::Finish() {
8-
AFL_VERIFY(Count);
9-
return --Count == 0;
8+
if (Count > 0) {
9+
return --Count == 0;
10+
} else {
11+
AFL_VERIFY(false);
12+
return false;
13+
}
1014
}
1115

1216
} // namespace NKikimr::NOlap

0 commit comments

Comments
 (0)