mirror of https://github.com/jellyfin/jellyfin.git
compiler does not like having ReadOnlySpan<char> in this foreach declaration, use var and AsSpan() instead
This commit is contained in:
parent
1ca7e9968e
commit
6c325d0831
|
@ -463,10 +463,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.AsSpan().Slice(0, 10))
|
||||
.Append("\",");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue