Remove conditional access when it is known to be not null

This commit is contained in:
Stepan Goremykin
2023-10-08 00:46:15 +02:00
parent 526f9a825c
commit 47254d6a22
3 changed files with 7 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ namespace Emby.Server.Implementations.Net
}
catch
{
socket?.Dispose();
socket.Dispose();
throw;
}
@@ -55,7 +55,7 @@ namespace Emby.Server.Implementations.Net
}
catch
{
socket?.Dispose();
socket.Dispose();
throw;
}
@@ -97,7 +97,7 @@ namespace Emby.Server.Implementations.Net
}
catch
{
socket?.Dispose();
socket.Dispose();
throw;
}