Use null propagation

This commit is contained in:
Stepan Goremykin
2023-10-08 01:25:37 +02:00
parent 212976277d
commit fdef9356b9
9 changed files with 20 additions and 59 deletions

View File

@@ -3540,10 +3540,7 @@ namespace Emby.Server.Implementations.Data
.Append(paramName)
.Append("))) OR ");
if (statement is not null)
{
statement.TryBind(paramName, query.PersonIds[i]);
}
statement?.TryBind(paramName, query.PersonIds[i]);
}
clauseBuilder.Length -= Or.Length;