From f3b890060430b66e72d15f151f5322a662d389aa Mon Sep 17 00:00:00 2001 From: Wojciech Malota-Wojcik Date: Thu, 3 Oct 2024 19:48:31 +0200 Subject: [PATCH] fix --- snapshot.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snapshot.go b/snapshot.go index a337f2a..bcea698 100644 --- a/snapshot.go +++ b/snapshot.go @@ -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 {