Skip to content

The Free Software Media System - Server Backend & API

use var

Luke Pulverentib38a41deda4c
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 303580a496..84055cea78 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -316,7 +316,7 @@ namespace MediaBrowser.Server.Implementations.Library
foreach (var special in movie.SpecialFeatures)
{
// Prevent access to foreach variable in closure
- Video special1 = special;
+ var special1 = special;
LibraryItemsCache.AddOrUpdate(special.Id, special, delegate { return special1; });
}
}