chore: lint v2 (#24118)
This commit is contained in:
@@ -368,11 +368,8 @@ func (m *Manager) doRestoreSnapshot(snapshot types.Snapshot, chChunks <-chan io.
|
||||
return errorsmod.Wrap(err, "multistore restore")
|
||||
}
|
||||
|
||||
for {
|
||||
if nextItem.Item == nil {
|
||||
// end of stream
|
||||
break
|
||||
}
|
||||
for nextItem.Item != nil {
|
||||
|
||||
metadata := nextItem.GetExtension()
|
||||
if metadata == nil {
|
||||
return errorsmod.Wrapf(storetypes.ErrLogic, "unknown snapshot item %T", nextItem.Item)
|
||||
|
||||
Reference in New Issue
Block a user