Use null propagation

This commit is contained in:
Stepan Goremykin
2023-10-08 01:25:37 +02:00
parent 212976277d
commit fdef9356b9
9 changed files with 20 additions and 59 deletions

View File

@@ -33,10 +33,7 @@ namespace Rssdp.Infrastructure
}
finally
{
if (retVal != null)
{
retVal.Dispose();
}
retVal?.Dispose();
}
}