R# code review

This commit is contained in:
JustArchi
2019-08-10 17:38:49 +02:00
parent 7d197ecebf
commit 64bd8308ca
5 changed files with 18 additions and 25 deletions

View File

@@ -2983,11 +2983,7 @@ namespace ArchiSteamFarm {
byte i = 0;
byte[] password = new byte[steamParentalCode.Length];
foreach (char character in steamParentalCode) {
if ((character < '0') || (character > '9')) {
break;
}
foreach (char character in steamParentalCode.TakeWhile(character => (character >= '0') && (character <= '9'))) {
password[i++] = (byte) character;
}