mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 04:48:27 +01:00
Use ArgumentException.ThrowIfNullOrEmpty
This commit is contained in:
@@ -918,15 +918,8 @@ namespace MediaBrowser.Providers.Manager
|
||||
var source = sourceResult.Item;
|
||||
var target = targetResult.Item;
|
||||
|
||||
if (source is null)
|
||||
{
|
||||
throw new ArgumentException("Item cannot be null.", nameof(sourceResult));
|
||||
}
|
||||
|
||||
if (target is null)
|
||||
{
|
||||
throw new ArgumentException("Item cannot be null.", nameof(targetResult));
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(sourceResult);
|
||||
ArgumentNullException.ThrowIfNull(targetResult);
|
||||
|
||||
if (!lockedFields.Contains(MetadataField.Name))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user