diff options
| author | Stepan Goremykin <goremukin@gmail.com> | 2023-10-08 01:25:37 +0200 |
|---|---|---|
| committer | Stepan Goremykin <goremukin@gmail.com> | 2023-10-08 01:25:37 +0200 |
| commit | fdef9356b9ba483e437fbc3a2bc0b6aaf3c05c29 (patch) | |
| tree | 221c5b7b39581783557ede161187e72db68d78eb /Emby.Server.Implementations/Data | |
| parent | 212976277d43a1d9a4186c6536e4a8cb3eefd639 (diff) | |
Use null propagation
Diffstat (limited to 'Emby.Server.Implementations/Data')
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteItemRepository.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs index 82d1d0b4e..e519364c2 100644 --- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs @@ -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; |
