mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-28 23:16:32 -04:00
StyleCop
This commit is contained in:
@@ -55,7 +55,7 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
private int CompareByReverse<TSubject, TValue>(TSubject left, TSubject right, Func<TSubject, TValue> funcValue)
|
||||
where TValue : IComparable<TValue>
|
||||
{
|
||||
return CompareBy(left, right, funcValue)*-1;
|
||||
return CompareBy(left, right, funcValue) * -1;
|
||||
}
|
||||
|
||||
private int CompareAll(params int[] comparers)
|
||||
@@ -77,8 +77,7 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
|
||||
return CompareAll(
|
||||
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.Series.QualityProfile.Value.GetIndex(remoteEpisode.ParsedEpisodeInfo.Quality.Quality)),
|
||||
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision)
|
||||
);
|
||||
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision));
|
||||
}
|
||||
|
||||
private int CompareLanguage(DownloadDecision x, DownloadDecision y)
|
||||
@@ -105,7 +104,8 @@ namespace NzbDrone.Core.DecisionEngine
|
||||
|
||||
private int CompareEpisodeCount(DownloadDecision x, DownloadDecision y)
|
||||
{
|
||||
var seasonPackCompare = CompareBy(x.RemoteEpisode, y.RemoteEpisode,
|
||||
var seasonPackCompare = CompareBy(x.RemoteEpisode,
|
||||
y.RemoteEpisode,
|
||||
remoteEpisode => remoteEpisode.ParsedEpisodeInfo.FullSeason);
|
||||
|
||||
if (seasonPackCompare != 0)
|
||||
|
||||
Reference in New Issue
Block a user