Fix redundant null check (#16131)

This commit is contained in:
Pieter-Jan Briers 2023-05-06 03:02:55 +02:00 • committed by GitHub
parent e5a58efb26
commit 0d581a77bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,8 +67,7 @@ public sealed class GeneralStationRecordConsoleSystem : EntitySystem
foreach (var pair in consoleRecords)
{
if (console != null && console.Filter != null
&& IsSkippedRecord(console.Filter, pair.Item2))
if (console.Filter != null && IsSkippedRecord(console.Filter, pair.Item2))
{
continue;
}