Kaynağa Gözat

fix duplicate function

crobibero 5 yıl önce
ebeveyn
işleme
fb81f95ae8
1 değiştirilmiş dosya ile 1 ekleme ve 18 silme
  1. 1 18
      Jellyfin.Api/Helpers/RequestHelpers.cs

+ 1 - 18
Jellyfin.Api/Helpers/RequestHelpers.cs

@@ -31,23 +31,6 @@ namespace Jellyfin.Api.Helpers
                 : value.Split(separator);
                 : 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>
         /// <summary>
         /// Checks if the user can update an entry.
         /// Checks if the user can update an entry.
         /// </summary>
         /// </summary>
@@ -104,7 +87,7 @@ namespace Jellyfin.Api.Helpers
                 return Array.Empty<Guid>();
                 return Array.Empty<Guid>();
             }
             }
 
 
-            return value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
+            return Split(value, ',', true)
                 .Select(i => new Guid(i))
                 .Select(i => new Guid(i))
                 .ToArray();
                 .ToArray();
         }
         }