1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

dont use is..or syntax

This commit is contained in:
Flutterish 2022-12-22 17:27:55 +01:00
parent 422fdd8ae5
commit 5df440e20e

View File

@ -1040,7 +1040,7 @@ namespace osu.Game
Logger.NewEntry += entry =>
{
if (entry.Level < LogLevel.Important || entry.Target is null or > LoggingTarget.Database) return;
if (entry.Level < LogLevel.Important || entry.Target == null || entry.Target > LoggingTarget.Database) return;
Debug.Assert(entry.Target != null);