mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
Small Optimization
This commit is contained in:
parent
5323887540
commit
6d3e1d6b57
@ -93,7 +93,7 @@ namespace MediaBrowser.Common.Plugins
|
|||||||
throw new ArgumentNullException(a == null ? nameof(a) : nameof(b));
|
throw new ArgumentNullException(a == null ? nameof(a) : nameof(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
var compare = string.Compare(a.Name, b.Name, true, CultureInfo.InvariantCulture);
|
var compare = string.Compare(a.Name, b.Name, StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
// Id is not equal but name is.
|
// Id is not equal but name is.
|
||||||
if (!a.Id.Equals(b.Id) && compare == 0)
|
if (!a.Id.Equals(b.Id) && compare == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user