Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest committed Oct 3, 2024
1 parent 0860593 commit f3b8900
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func (s Snapshot) DeleteSnapshot(snapshotID SnapshotID) error {
if !exists {
return errors.Errorf("snapshot %d does not exist", snapshotID)
}

//nolint:nestif
if snapshotInfo.NextSnapshotID <= s.singularityNode.LastSnapshotID {
nextSnapshotInfo, exists := s.snapshots.Get(snapshotInfo.NextSnapshotID)
if !exists {
Expand Down

0 comments on commit f3b8900

Please sign in to comment.