Revert "Resharper cleanup"

This reverts commit 7c8d7b5ada.

Bad cleanup.
This commit is contained in:
JustArchi
2017-04-05 17:01:18 +02:00
parent 7c8d7b5ada
commit fcf9686a79
33 changed files with 223 additions and 332 deletions

View File

@@ -77,9 +77,7 @@ namespace ArchiSteamFarm {
ServerListProvider.ServerListUpdated += OnServerListUpdated;
}
public void Dispose() {
ServerListProvider.ServerListUpdated -= OnServerListUpdated;
}
public void Dispose() => ServerListProvider.ServerListUpdated -= OnServerListUpdated;
internal static GlobalDatabase Load(string filePath) {
if (string.IsNullOrEmpty(filePath)) {
@@ -109,9 +107,7 @@ namespace ArchiSteamFarm {
return globalDatabase;
}
private void OnServerListUpdated(object sender, EventArgs e) {
Save();
}
private void OnServerListUpdated(object sender, EventArgs e) => Save();
private void Save() {
string json = JsonConvert.SerializeObject(this, CustomSerializerSettings);