aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/MediaInfo/MediaInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/MediaInfo/MediaInfo.cs')
-rw-r--r--MediaBrowser.Model/MediaInfo/MediaInfo.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/MediaBrowser.Model/MediaInfo/MediaInfo.cs b/MediaBrowser.Model/MediaInfo/MediaInfo.cs
index 55545e23a..eb8a4434e 100644
--- a/MediaBrowser.Model/MediaInfo/MediaInfo.cs
+++ b/MediaBrowser.Model/MediaInfo/MediaInfo.cs
@@ -7,8 +7,6 @@ namespace MediaBrowser.Model.MediaInfo
{
public class MediaInfo : MediaSourceInfo, IHasProviderIds
{
- private static readonly string[] EmptyStringArray = new string[] {};
-
public ChapterInfo[] Chapters { get; set; }
/// <summary>
@@ -56,13 +54,13 @@ namespace MediaBrowser.Model.MediaInfo
public MediaInfo()
{
- Chapters = new ChapterInfo[] { };
- Artists = new string[] {};
- AlbumArtists = EmptyStringArray;
- Studios = new string[] {};
- Genres = new string[] {};
- People = new BaseItemPerson[] { };
+ Chapters = Array.Empty<ChapterInfo>();
+ Artists = Array.Empty<string>();
+ AlbumArtists = Array.Empty<string>();
+ Studios = Array.Empty<string>();
+ Genres = Array.Empty<string>();
+ People = Array.Empty<BaseItemPerson>();
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
}
}
-} \ No newline at end of file
+}