Skip to content

Commit 5aa393d

Browse files
committed
Make comparison clear on GameVersion.TryFormat
1 parent efb0dbe commit 5aa393d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Management/GameVersion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public readonly bool TryFormat(Span<char> destination, out int charsWritten, Rea
259259
bool isUseAutoFormat = !format.IsEmpty && (format[0] | 0x20) == 's'; // This compares both 's' or 'S' as true.
260260
bool isForceUseFullFormat = !format.IsEmpty && (format[0] | 0x20) == 'f'; // This compares both 'f' or 'F' as false.
261261
bool isUseMiniFormat = !isForceUseFullFormat &&
262-
(!format.IsEmpty && (format[0] | 0x20) == 'n' // This compares both 'n' or 'N' as true.
262+
((!format.IsEmpty && (format[0] | 0x20) == 'n') // This compares both 'n' or 'N' as true.
263263
|| Revision == 0);
264264

265265
if (destination.Length < 4)
@@ -356,7 +356,7 @@ public readonly bool TryFormat(Span<byte> utf8Destination, out int bytesWritten,
356356
bool isUseAutoFormat = !format.IsEmpty && (format[0] | 0x20) == formatByteS; // This compares both 's' or 'S' as true.
357357
bool isForceUseFullFormat = !format.IsEmpty && (format[0] | 0x20) == formatByteF; // This compares both 'f' or 'F' as false.
358358
bool isUseMiniFormat = !isForceUseFullFormat &&
359-
(!format.IsEmpty && (format[0] | 0x20) == formatByteN // This compares both 'n' or 'N' as true.
359+
((!format.IsEmpty && (format[0] | 0x20) == formatByteN) // This compares both 'n' or 'N' as true.
360360
|| Revision == 0);
361361

362362
if (utf8Destination.Length < 4)

0 commit comments

Comments
 (0)