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

@@ -91,14 +91,7 @@ namespace ArchiSteamFarm {
return globalDatabase;
}
private void OnServerListUpdated(object sender, EventArgs e) {
if ((sender == null) || (e == null)) {
Logging.LogNullError(nameof(sender) + " || " + nameof(e));
return;
}
Save();
}
private void OnServerListUpdated(object sender, EventArgs e) => Save();
// This constructor is used when creating new database
private GlobalDatabase(string filePath) : this() {