diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-11-14 15:47:34 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-11-14 20:27:48 +0100 |
| commit | bc7359f87dafb972dfe79667128f307643015bac (patch) | |
| tree | 8d5b4c968e9b793496bf454316beea4cbd45d96f /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 569874a212e550d034d7c4ded5d95b6b770bf07a (diff) | |
Use string.Split(char) where possible instead of string.Split(char[])
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index f3bd95d80..ea75252c5 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1032,7 +1032,7 @@ namespace Emby.Server.Implementations else { // No metafile, so lets see if the folder is versioned. - metafile = dir.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries)[^1]; + metafile = dir.Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries)[^1]; int versionIndex = dir.LastIndexOf('_'); if (versionIndex != -1 && Version.TryParse(dir.Substring(versionIndex + 1), out Version parsedVersion)) |
