Skip to content

Commit

Permalink
misc: misc cleanup in group model
Browse files Browse the repository at this point in the history
- don't leave an unused variable in the body of the function
  • Loading branch information
revam committed Oct 5, 2023
1 parent d7b0655 commit b7a4123
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Shoko.Server/Models/SVR_AnimeGroup.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
Expand Down Expand Up @@ -246,26 +246,20 @@ public List<SVR_AnimeGroup> GetAllChildGroups()
/// </summary>
public SVR_AnimeSeries GetMainSeries()
{
SVR_AnimeSeries series = null;

// User overridden main series.
if (DefaultAnimeSeriesID.HasValue)
{
series = RepoFactory.AnimeSeries.GetByID(DefaultAnimeSeriesID.Value);
var series = RepoFactory.AnimeSeries.GetByID(DefaultAnimeSeriesID.Value);
if (series != null)
{
return series;
}
}

// Auto selected main series.
if (MainAniDBAnimeID.HasValue)
{
series = RepoFactory.AnimeSeries.GetByAnimeID(MainAniDBAnimeID.Value);
var series = RepoFactory.AnimeSeries.GetByAnimeID(MainAniDBAnimeID.Value);
if (series != null)
{
return series;
}
}

// Earliest airing series.
Expand Down

0 comments on commit b7a4123

Please sign in to comment.