瀏覽代碼

Move declaration closer to usage

Stepan Goremykin 1 年之前
父節點
當前提交
d6b557d9ee
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

+ 1 - 2
MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

@@ -107,7 +107,6 @@ namespace MediaBrowser.Providers.MediaInfo
 
             if (libraryOptions.EnableLUFSScan)
             {
-                string output;
                 using (var process = new Process()
                 {
                     StartInfo = new ProcessStartInfo
@@ -131,7 +130,7 @@ namespace MediaBrowser.Providers.MediaInfo
                     }
 
                     using var reader = process.StandardError;
-                    output = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
+                    var output = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
                     cancellationToken.ThrowIfCancellationRequested();
                     MatchCollection split = LUFSRegex().Matches(output);