mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Post GPL cleanup
This commit is contained in:
@@ -55,12 +55,11 @@ namespace MediaBrowser.Api
|
||||
return Request.Headers[name];
|
||||
}
|
||||
|
||||
private static readonly string[] EmptyStringArray = Array.Empty<string>();
|
||||
public static string[] SplitValue(string value, char delim)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
return EmptyStringArray;
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
|
||||
return value.Split(new[] { delim }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
Reference in New Issue
Block a user