diff --git a/internal/neofs/tree.go b/internal/neofs/tree.go index 32cf9b0ab..47f31f18e 100644 --- a/internal/neofs/tree.go +++ b/internal/neofs/tree.go @@ -907,7 +907,8 @@ func (c *TreeClient) PutLock(ctx context.Context, cnrID *cid.ID, nodeID uint64, if lock.LegalHoldOID != nil { meta[legalHoldOIDKV] = lock.LegalHoldOID.EncodeToString() - } else if lock.RetentionOID != nil { + } + if lock.RetentionOID != nil { meta[retentionOIDKV] = lock.RetentionOID.EncodeToString() meta[untilDateKV] = lock.UntilDate if lock.IsCompliance {