Updated code to correct build errors for Jellyfin.Extensions

This commit is contained in:
2026-02-20 11:24:16 -05:00
parent d5fdbec943
commit 44ab9e1d6d
70 changed files with 12677 additions and 420 deletions
@@ -2,11 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
using System.Text;
namespace Jellyfin.Extensions
{
using System;
using System.Collections.Generic;
using System.Text;
/// <summary>
/// Extension methods for the <see cref="StringBuilder"/> class.
/// </summary>
@@ -21,9 +22,11 @@ namespace Jellyfin.Extensions
/// <returns>The updated string builder.</returns>
public static StringBuilder AppendJoinInSingleQuotes(this StringBuilder builder, char delimiter, IReadOnlyList<string> values)
{
ArgumentNullException.ThrowIfNull(values);
var len = values.Count;
for (var i = 0; i < len; i++)
{
ArgumentNullException.ThrowIfNull(builder);
builder.Append('\'')
.Append(values[i])
.Append('\'')
@@ -31,6 +34,7 @@ namespace Jellyfin.Extensions
}
// remove last ,
ArgumentNullException.ThrowIfNull(builder);
builder.Length--;
return builder;