1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Avoid unnecessary zero-length array allocations

This commit is contained in:
Qstick
2023-01-09 21:59:55 -06:00
parent b2c2c79a96
commit 0ed8ba828d
39 changed files with 77 additions and 66 deletions
@@ -1,3 +1,4 @@
using System;
using System.Linq;
using FizzWare.NBuilder;
using FluentAssertions;
@@ -84,7 +85,7 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport.Specifications
public void should_should_be_accepted_for_full_season()
{
_localEpisode.Path = @"C:\Test\Unsorted\Series.Title.S01\S01E01.mkv".AsOsAgnostic();
_localEpisode.FolderEpisodeInfo.EpisodeNumbers = new int[0];
_localEpisode.FolderEpisodeInfo.EpisodeNumbers = Array.Empty<int>();
_localEpisode.FolderEpisodeInfo.FullSeason = true;
GivenEpisodes(_localEpisode.FileEpisodeInfo, _localEpisode.FileEpisodeInfo.EpisodeNumbers);