fix duplicate function

This commit is contained in:
crobibero 2020-06-24 12:49:09 -06:00
parent 289605c07f
commit fb81f95ae8

View File

@ -31,23 +31,6 @@ namespace Jellyfin.Api.Helpers
: value.Split(separator);
}
/// <summary>
/// Splits a comma delimited string and parses Guids.
/// </summary>
/// <param name="value">Input value.</param>
/// <returns>Parsed Guids.</returns>
public static Guid[] GetGuids(string value)
{
if (value == null)
{
return Array.Empty<Guid>();
}
return value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
.Select(i => new Guid(i))
.ToArray();
}
/// <summary>
/// Checks if the user can update an entry.
/// </summary>
@ -104,7 +87,7 @@ namespace Jellyfin.Api.Helpers
return Array.Empty<Guid>();
}
return value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
return Split(value, ',', true)
.Select(i => new Guid(i))
.ToArray();
}