mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-21 08:12:08 +00:00
Fix json array string writer in JsonDelimitedArrayConverter (#12949)
This commit is contained in:
parent
954950dc14
commit
3089e9e40a
1 changed files with 0 additions and 13 deletions
|
|
@ -71,24 +71,11 @@ namespace Jellyfin.Extensions.Json.Converters
|
|||
writer.WriteStartArray();
|
||||
if (value.Length > 0)
|
||||
{
|
||||
var toWrite = value.Length - 1;
|
||||
foreach (var it in value)
|
||||
{
|
||||
var wrote = false;
|
||||
if (it is not null)
|
||||
{
|
||||
writer.WriteStringValue(it.ToString());
|
||||
wrote = true;
|
||||
}
|
||||
|
||||
if (toWrite > 0)
|
||||
{
|
||||
if (wrote)
|
||||
{
|
||||
writer.WriteStringValue(Delimiter.ToString());
|
||||
}
|
||||
|
||||
toWrite--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue