Explorar el Código

Remove unnecessary ToList

Claus Vium hace 6 años
padre
commit
42abb5a993
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Emby.Naming/Video/VideoListResolver.cs

+ 1 - 1
Emby.Naming/Video/VideoListResolver.cs

@@ -179,7 +179,7 @@ namespace Emby.Naming.Video
 
             if (!string.IsNullOrEmpty(folderName) && folderName.Length > 1)
             {
-                var ordered = videos.OrderBy(i => i.Name).ToList();
+                var ordered = videos.OrderBy(i => i.Name);
 
                 return ordered.GroupBy(v => new {v.Name, v.Year}).Select(group => new VideoInfo
                 {