From 7712258fd9034891d9e3aab5270e720f59dc3ce4 Mon Sep 17 00:00:00 2001 From: BarkovBG Date: Wed, 14 Aug 2024 15:01:41 +0300 Subject: [PATCH] fix style (#1792) --- .../internal/pkg/services/pools/storage/consistency_check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go b/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go index 1b87b3c5d15..d3fc8e5bc8a 100644 --- a/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go +++ b/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go @@ -226,6 +226,9 @@ func (s *storageYDB) checkBaseDiskSlotReleased( defer tx.Rollback(ctx) slot, err := s.getAcquiredSlot(ctx, tx, overlayDiskID) + if err != nil { + return err + } if slot == nil { return tx.Commit(ctx) }