Merge pull request #9775 from crobibero/readonlyspan

Fix readonlyspan usage
This commit is contained in:
Claus Vium 2023-05-15 23:13:21 +02:00 committed by GitHub
commit 3a9f4a3c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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