mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Use ArgumentException.ThrowIfNullOrEmpty
This commit is contained in:
@@ -54,11 +54,7 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
||||
public void Fetch(MetadataResult<T> item, string metadataFile, CancellationToken cancellationToken)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(item);
|
||||
|
||||
if (string.IsNullOrEmpty(metadataFile))
|
||||
{
|
||||
throw new ArgumentException("The metadata file was empty or null.", nameof(metadataFile));
|
||||
}
|
||||
ArgumentException.ThrowIfNullOrEmpty(metadataFile);
|
||||
|
||||
var settings = new XmlReaderSettings
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user