mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 03:03:40 +01:00
ReSharper format: conform inline 'out' parameters.
This commit is contained in:
@@ -25,9 +25,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
public FileSystemMetadata[] GetFileSystemEntries(string path)
|
||||
{
|
||||
FileSystemMetadata[] entries;
|
||||
|
||||
if (!_cache.TryGetValue(path, out entries))
|
||||
if (!_cache.TryGetValue(path, out var entries))
|
||||
{
|
||||
//_logger.LogDebug("Getting files for " + path);
|
||||
|
||||
@@ -56,8 +54,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
public FileSystemMetadata GetFile(string path)
|
||||
{
|
||||
FileSystemMetadata file;
|
||||
if (!_fileCache.TryGetValue(path, out file))
|
||||
if (!_fileCache.TryGetValue(path, out var file))
|
||||
{
|
||||
file = _fileSystem.GetFileInfo(path);
|
||||
|
||||
@@ -83,8 +80,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
public List<string> GetFilePaths(string path, bool clearCache)
|
||||
{
|
||||
List<string> result;
|
||||
if (clearCache || !_filePathCache.TryGetValue(path, out result))
|
||||
if (clearCache || !_filePathCache.TryGetValue(path, out var result))
|
||||
{
|
||||
result = _fileSystem.GetFilePaths(path).ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user