removed code redundancies.

This commit is contained in:
kay.one 2013-07-26 22:02:25 -07:00
commit 9a24268ee7
24 changed files with 104 additions and 185 deletions

View file

@ -118,12 +118,9 @@ namespace NzbDrone.Core.Notifications.Xbmc
return null;
}
else
{
var matchingSeries = allSeries.FirstOrDefault(s => s.ImdbNumber == series.TvdbId || s.Label == series.Title);
var matchingSeries = allSeries.FirstOrDefault(s => s.ImdbNumber == series.TvdbId || s.Label == series.Title);
if (matchingSeries != null) return matchingSeries.File;
}
if (matchingSeries != null) return matchingSeries.File;
return null;
}