mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-09 13:14:26 +00:00
Fix logical issues found with static analyzer (#828)
* Fix possible logical issues found with static analyzer Bot:2216 - there is already a null check before IPC:612 - shouldn't it be 'if' because we get out of the loop anyway? * Revert IPC.cs change
This commit is contained in:
committed by
Łukasz Domeradzki
parent
80acfbee17
commit
ffad599ea1
@@ -2213,7 +2213,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
string loginKey = callback.LoginKey;
|
||||
if (!string.IsNullOrEmpty(loginKey) && (BotConfig.PasswordFormat != CryptoHelper.ECryptoMethod.PlainText)) {
|
||||
if (BotConfig.PasswordFormat != CryptoHelper.ECryptoMethod.PlainText) {
|
||||
loginKey = CryptoHelper.Encrypt(BotConfig.PasswordFormat, loginKey);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user