mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-13 09:43:12 +01:00
Use ArgumentException.ThrowIfNullOrEmpty
This commit is contained in:
@@ -90,10 +90,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||
throw new ArgumentException("Item can't be null.", nameof(item));
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(metadataFile))
|
||||
{
|
||||
throw new ArgumentException("The metadata filepath was empty.", nameof(metadataFile));
|
||||
}
|
||||
ArgumentException.ThrowIfNullOrEmpty(metadataFile);
|
||||
|
||||
_validProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user