Skip to content

Commit

Permalink
Avoid using redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed May 6, 2024
1 parent 00d9be0 commit 5873ef5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Radarr.Api.V3/Update/UpdateController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,9 @@ public List<UpdateResource> GetRecentUpdates()
return resources;
}

var updateHistory = _updateHistoryService.InstalledSince(resources.Last().ReleaseDate);
var installDates = updateHistory
.DistinctBy(v => v.Version)
.ToDictionary(v => v.Version);
var installDates = _updateHistoryService.InstalledSince(resources.Last().ReleaseDate)
.DistinctBy(v => v.Version)
.ToDictionary(v => v.Version);

foreach (var resource in resources)
{
Expand Down

0 comments on commit 5873ef5

Please sign in to comment.