diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2023-05-15 23:13:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-15 23:13:21 +0200 |
| commit | 3a9f4a3c6d3f3e4992e7529c94ed0fc71fd2234c (patch) | |
| tree | ab12edb43e1519579d4af1bf990796fe14e22850 | |
| parent | 315b13076b8bd24dc078a5710cf183241651870a (diff) | |
| parent | c809c36b30fe9fa4be34f15089a5855c343a0f4e (diff) | |
Merge pull request #9775 from crobibero/readonlyspan
Fix readonlyspan usage
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs index ca3e45707..7645c6c52 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs +++ b/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)); - foreach (ReadOnlySpan<char> i in programIds) + foreach (var i in programIds) { str.Append('"') - .Append(i.Slice(0, 10)) + .Append(i[..10]) .Append("\","); } |
