mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	use var
This commit is contained in:
		
							parent
							
								
									9f06eb781f
								
							
						
					
					
						commit
						b38a41deda
					
				@ -316,7 +316,7 @@ namespace MediaBrowser.Server.Implementations.Library
 | 
				
			|||||||
                foreach (var special in movie.SpecialFeatures)
 | 
					                foreach (var special in movie.SpecialFeatures)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    // Prevent access to foreach variable in closure
 | 
					                    // Prevent access to foreach variable in closure
 | 
				
			||||||
                    Video special1 = special;
 | 
					                    var special1 = special;
 | 
				
			||||||
                    LibraryItemsCache.AddOrUpdate(special.Id, special, delegate { return special1; });
 | 
					                    LibraryItemsCache.AddOrUpdate(special.Id, special, delegate { return special1; });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user