From 9df5c1baff0eeeef8f5a1cd628a2f0c671c729f9 Mon Sep 17 00:00:00 2001 From: Dash <33206210+LordFlashmeow@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:01:47 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Cazzar --- Shoko.Server/API/v2/Modules/PlexWebhook.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Shoko.Server/API/v2/Modules/PlexWebhook.cs b/Shoko.Server/API/v2/Modules/PlexWebhook.cs index 38195309b..e5ea781d5 100644 --- a/Shoko.Server/API/v2/Modules/PlexWebhook.cs +++ b/Shoko.Server/API/v2/Modules/PlexWebhook.cs @@ -194,19 +194,16 @@ private void Scrobble(PlexEvent data, SVR_JMMUser user) { if (episode == null) { - _logger.LogInformation( - $"Failed to get anime episode from plex using key {metadata.Key}."); + _logger.LogInformation($"Failed to get anime episode from plex using key {metadata.Key}."); return (null, anime); } - if (episode.EpisodeTypeEnum == episodeType - && anime.GetAnimeEpisodes().Contains(episode)) + if (episode.EpisodeTypeEnum == episodeType && anime.GetAnimeEpisodes().Contains(episode)) { return (episode, anime); } - _logger.LogInformation( - $"Unable to work out the metadata for {metadata.Guid}."); + _logger.LogInformation($"Unable to work out the metadata for {metadata.Guid}."); return (null, anime); } @@ -299,7 +296,7 @@ public async Task SyncForUser(int id) [Authorize] [HttpGet("libraries")] - public ActionResult GetLibraries() + public ActionResult GetLibraries() { var result = CallPlexHelper(h => h.GetDirectories());