parameter e hides outer local variable with the same name

This commit is contained in:
Kilian von Pflugk 2024-10-30 21:14:26 +01:00
parent 7db0f774e9
commit 55c6415022

View File

@ -89,7 +89,7 @@ public class SkipIntroController(MediaSegmentUpdateManager mediaSegmentUpdateMan
var seasonId = rawItem is Episode e ? e.SeasonId : rawItem.Id;
var episode = Plugin.Instance!.QueuedMediaItems
.FirstOrDefault(kvp => kvp.Key == seasonId).Value
.FirstOrDefault(e => e.EpisodeId == rawItem.Id);
.FirstOrDefault(queuedEpisode => queuedEpisode.EpisodeId == rawItem.Id);
if (episode is not null)
{