Code style update/fixes

This commit is contained in:
JustArchi
2017-07-03 12:14:23 +02:00
parent e5f8fd9213
commit 9aa36f1a03
11 changed files with 114 additions and 94 deletions

View File

@@ -113,11 +113,7 @@ namespace ArchiSteamFarm {
}
Steam.ConfirmationDetails response = await Bot.ArchiWebHandler.GetConfirmationDetails(DeviceID, confirmationHash, time, confirmation).ConfigureAwait(false);
if ((response == null) || !response.Success) {
return null;
}
return response;
return response?.Success == true ? response : null;
}
internal async Task<HashSet<Confirmation>> GetConfirmations() {
@@ -221,11 +217,13 @@ namespace ArchiSteamFarm {
}
bool? result = await Bot.ArchiWebHandler.HandleConfirmations(DeviceID, confirmationHash, time, confirmations, accept).ConfigureAwait(false);
if (!result.HasValue) { // Request timed out
if (!result.HasValue) {
// Request timed out
return false;
}
if (result.Value) { // Request succeeded
if (result.Value) {
// Request succeeded
return true;
}