Browse Source

Merge pull request #9775 from crobibero/readonlyspan

Fix readonlyspan usage
Claus Vium 2 years ago
parent
commit
3a9f4a3c6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs

+ 2 - 2
Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs

@@ -462,10 +462,10 @@ namespace Emby.Server.Implementations.LiveTv.Listings
             }
             }
 
 
             StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
             StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
-            foreach (ReadOnlySpan<char> i in programIds)
+            foreach (var i in programIds)
             {
             {
                 str.Append('"')
                 str.Append('"')
-                    .Append(i.Slice(0, 10))
+                    .Append(i[..10])
                     .Append("\",");
                     .Append("\",");
             }
             }