Skip to content

Commit 96e6aa8

Browse files
committed
Apply fix from .NET 10 analyzer
1 parent 18400a0 commit 96e6aa8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/Configuration/src/ConfigServer/ConfigServerConfigurationProvider.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,8 @@ public void Dispose()
830830
_refreshTimer?.Dispose();
831831
_refreshTimer = null;
832832

833-
if (_timerTickLock != null)
834-
{
835-
_timerTickLock.Dispose();
836-
_timerTickLock = null;
837-
}
833+
_timerTickLock?.Dispose();
834+
_timerTickLock = null;
838835

839836
if (_ownsHttpClientHandler)
840837
{

0 commit comments

Comments
 (0)