Use Null-Propagation Operator
This commit is contained in:
@@ -54,8 +54,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
if (disposed)
|
||||
return;
|
||||
|
||||
if (context != null)
|
||||
context.Dispose();
|
||||
context?.Dispose();
|
||||
|
||||
disposed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user