Use StringComparison.Ordinal

This commit is contained in:
Mohamed Akram 2021-04-19 16:51:44 +04:00
parent 90b941b3f6
commit 64071873a0

View File

@ -148,8 +148,8 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
private async Task<TvGroupCollection> GetSeriesGroupAsync(int tvShowId, string displayOrder, string language, string imageLanguages, CancellationToken cancellationToken)
{
TvGroupType? groupType =
displayOrder == "absolute" ? TvGroupType.Absolute :
displayOrder == "dvd" ? TvGroupType.DVD :
string.Equals(displayOrder, "absolute", StringComparison.Ordinal) ? TvGroupType.Absolute :
string.Equals(displayOrder, "dvd", StringComparison.Ordinal) ? TvGroupType.DVD :
null;
if (groupType == null)