[#1431] metabase: Fix unreachable code

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-10-14 17:10:03 +03:00 committed by Evgenii Stratonikov
parent 714ff784fa
commit 3012286452

View file

@ -453,7 +453,7 @@ func delFKBTIndexItem(tx *bbolt.Tx, item namedBucketItem) error {
func hasAnyItem(b *bbolt.Bucket) bool {
var hasAnyItem bool
c := b.Cursor()
for k, _ := c.First(); k != nil; k, _ = c.Next() {
for k, _ := c.First(); k != nil; {
hasAnyItem = true
break
}