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

@@ -48,13 +48,9 @@ namespace ArchiSteamFarm {
private DateTime LastPersonaStateRequest = DateTime.MinValue;
private bool ShouldSendHeartBeats;
internal Statistics(Bot bot) {
Bot = bot ?? throw new ArgumentNullException(nameof(bot));
}
internal Statistics(Bot bot) => Bot = bot ?? throw new ArgumentNullException(nameof(bot));
public void Dispose() {
Semaphore.Dispose();
}
public void Dispose() => Semaphore.Dispose();
internal async Task OnHeartBeat() {
// Request persona update if needed
@@ -89,9 +85,7 @@ namespace ArchiSteamFarm {
}
}
internal async Task OnLoggedOn() {
await Bot.ArchiWebHandler.JoinGroup(SharedInfo.ASFGroupSteamID).ConfigureAwait(false);
}
internal async Task OnLoggedOn() => await Bot.ArchiWebHandler.JoinGroup(SharedInfo.ASFGroupSteamID).ConfigureAwait(false);
internal async Task OnPersonaState(SteamFriends.PersonaStateCallback callback) {
if (callback == null) {