mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Condense expression
single bool branch
This commit is contained in:
parent
a2492eddd9
commit
8ec25da194
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ namespace PKHeX.Core
|
|||
{
|
||||
if ('0' <= c)
|
||||
return c <= '9';
|
||||
return c is >= '0' and <= '9';
|
||||
return (uint)(c - '0') <= 9;
|
||||
}
|
||||
|
||||
return str.Count(IsNumber);
|
||||
|
|
Loading…
Reference in a new issue