diff --git a/Shoko.Server/Services/AnimeGroupService.cs b/Shoko.Server/Services/AnimeGroupService.cs index 27f855086..9e2e2cbd4 100644 --- a/Shoko.Server/Services/AnimeGroupService.cs +++ b/Shoko.Server/Services/AnimeGroupService.cs @@ -150,7 +150,7 @@ public void RenameAllGroups() /// public void UpdateStatsFromTopLevel(SVR_AnimeGroup group, bool watchedStats, bool missingEpsStats) { - if (group?.AnimeGroupParentID == null) + if (group is not { AnimeGroupParentID: null }) { return; } diff --git a/Shoko.Server/Services/AnimeSeriesService.cs b/Shoko.Server/Services/AnimeSeriesService.cs index 574bec9ce..2f7c54878 100644 --- a/Shoko.Server/Services/AnimeSeriesService.cs +++ b/Shoko.Server/Services/AnimeSeriesService.cs @@ -678,12 +678,12 @@ private void UpdateMissingEpisodeStats(SVR_AnimeSeries series, List