Use Null-Propagation Operator
This commit is contained in:
@@ -244,8 +244,7 @@ namespace OpenRA.Server
|
||||
}
|
||||
|
||||
var conn = Conns.SingleOrDefault(c => c.Socket == s);
|
||||
if (conn != null)
|
||||
conn.ReadData(this);
|
||||
conn?.ReadData(this);
|
||||
}
|
||||
|
||||
delayedActions.PerformActions(0);
|
||||
|
||||
Reference in New Issue
Block a user