mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-07 11:58:55 +02:00
misc: chore: Merge duplicated 'if' branches
This commit is contained in:
@@ -236,14 +236,8 @@ namespace Ryujinx.HLE.Loaders.Mods
|
||||
|
||||
var tokens = line.Split(' ', 2, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
if (tokens.Length < 2)
|
||||
{
|
||||
ParseWarn();
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!int.TryParse(tokens[0], System.Globalization.NumberStyles.HexNumber, null, out int offset))
|
||||
if (tokens.Length < 2 ||
|
||||
!int.TryParse(tokens[0], System.Globalization.NumberStyles.HexNumber, null, out int offset))
|
||||
{
|
||||
ParseWarn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user