mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 20:24:47 +03:00
Optimize Guid comparisons
* Use Guid.Equals(Guid) instead of the == override * Ban the usage of Guid.Equals(Object) to prevent accidental boxing * Compare to default(Guid) instead of Guid.Empty
This commit is contained in:
@@ -1444,7 +1444,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
private static void ValidateAudioInput(AudioOptions options)
|
||||
{
|
||||
if (options.ItemId.Equals(Guid.Empty))
|
||||
if (options.ItemId.Equals(default))
|
||||
{
|
||||
throw new ArgumentException("ItemId is required");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user