Get used to null propagation

This commit is contained in:
JustArchi
2016-07-10 20:17:35 +02:00
parent 0b06df4352
commit feb3fbfe59
11 changed files with 28 additions and 79 deletions

View File

@@ -100,11 +100,7 @@ namespace ArchiSteamFarm {
}
}
public void Dispose() {
if (Lock != null) {
Lock.Dispose();
}
}
public void Dispose() => Lock?.Dispose();
public void CopyTo(T[] array, int arrayIndex) {
Lock.EnterReadLock();