Apply review suggestion

This commit is contained in:
Shadowghost 2023-02-20 21:58:31 +01:00
parent 5f938de337
commit 6300d01fcc

View File

@ -3623,8 +3623,12 @@ namespace Emby.Server.Implementations.Data
clauseBuilder.Append("(guid in (select itemid from People where Name = (select Name from TypedBaseItems where guid=")
.Append(paramName)
.Append("))) OR ");
query.PersonIds[i].TryWriteBytes(idBytes);
statement?.TryBind(paramName, idBytes);
if (statement is not null)
{
query.PersonIds[i].TryWriteBytes(idBytes);
statement.TryBind(paramName, idBytes);
}
}
// Remove last " OR "