diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-19 11:57:03 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-19 11:57:03 +0200 |
| commit | d99536e99fe7e8d204ef93db39e519afbbfdad0a (patch) | |
| tree | 3eaf10772b1b722fb98a8b78e6f42fe7b5bbb56c /Emby.Naming/Audio/AudioFileParser.cs | |
| parent | 16401ec7ae078b2b7c4c65e3792cb4c4159490d2 (diff) | |
Improved tests
Diffstat (limited to 'Emby.Naming/Audio/AudioFileParser.cs')
| -rw-r--r-- | Emby.Naming/Audio/AudioFileParser.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Naming/Audio/AudioFileParser.cs b/Emby.Naming/Audio/AudioFileParser.cs index 25d5f8735..6b2f4be93 100644 --- a/Emby.Naming/Audio/AudioFileParser.cs +++ b/Emby.Naming/Audio/AudioFileParser.cs @@ -1,3 +1,4 @@ +#nullable enable #pragma warning disable CS1591 using System; @@ -11,7 +12,7 @@ namespace Emby.Naming.Audio { public static bool IsAudioFile(string path, NamingOptions options) { - var extension = Path.GetExtension(path) ?? string.Empty; + var extension = Path.GetExtension(path); return options.AudioFileExtensions.Contains(extension, StringComparer.OrdinalIgnoreCase); } } |
