From 9d1b95d0c3e167dcd07907ccfb385f47ca2af2f3 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Mon, 11 Nov 2024 11:22:33 -0700 Subject: [PATCH] Fix formatting --- src/Lucene.Net.Tests/Index/TestBinaryDocValuesUpdates.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Lucene.Net.Tests/Index/TestBinaryDocValuesUpdates.cs b/src/Lucene.Net.Tests/Index/TestBinaryDocValuesUpdates.cs index e89bc613b7..a90626bc14 100644 --- a/src/Lucene.Net.Tests/Index/TestBinaryDocValuesUpdates.cs +++ b/src/Lucene.Net.Tests/Index/TestBinaryDocValuesUpdates.cs @@ -1146,9 +1146,13 @@ public virtual void TestUpdateOldSegments() { writer.Dispose(); Assert.Fail("should not have succeeded to update a segment written with an old Codec"); - } catch (Exception e) when (e.IsUnsupportedOperationException()) { + } + catch (Exception e) when (e.IsUnsupportedOperationException()) + { writer.Rollback(); - } finally { + } + finally + { OldFormatImpersonationIsActive = oldValue; }