diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-04-01 21:20:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 21:20:36 +0200 |
| commit | 4699ec6417ba31f5f6ac9058ef108c779aabd0e1 (patch) | |
| tree | 3a9e4ba1ed945fde9ebd746a4758eba36e8290cc /Emby.Server.Implementations/Dto | |
| parent | 1a4d9d4c53c11c6a1a775518ce267b5a3bce8781 (diff) | |
Use null-coalescing assignment
Co-Authored-By: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'Emby.Server.Implementations/Dto')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index 67ecdb4ea..34a342cf7 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -1062,7 +1062,7 @@ namespace Emby.Server.Implementations.Dto if (options.ContainsField(ItemFields.LocalTrailerCount)) { - allExtras = allExtras ?? item.GetExtras().ToArray(); + allExtras ??= item.GetExtras().ToArray(); dto.LocalTrailerCount = allExtras.Count(i => i.ExtraType == ExtraType.Trailer); if (item is IHasTrailers hasTrailers) |
