Browse Source

Inline variable declaration

(cherry picked from commit 48f34a2071826a029aa0b1051ff4b05a4a381abe)

Source commit: 23c19df82a327a81a5be71e0223b41354b79b47c
Martin Prikryl 5 years ago
parent
commit
e0728d5bf7
1 changed files with 1 additions and 2 deletions
  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());