瀏覽代碼

Inline variable declaration

Source commit: bddbda7a481cb55900b7e4f238270f3900c93b18
Martin Prikryl 5 年之前
父節點
當前提交
48f34a2071
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      dotnet/internal/ExeSessionProcess.cs

+ 1 - 2
dotnet/internal/ExeSessionProcess.cs

@@ -1032,8 +1032,7 @@ namespace WinSCP
                         long size = new FileInfo(exePath).Length;
                         _logger.WriteLine($"Size of the executable file is {size}");
 
-                        int handle;
-                        int verInfoSize = GetFileVersionInfoSize(exePath, out handle);
+                        int verInfoSize = GetFileVersionInfoSize(exePath, out int handle);
                         if (verInfoSize == 0)
                         {
                             throw new Exception($"Cannot retrieve {exePath} version info", new Win32Exception());