From 1464d504a4aca209e2fe6adccb1ab920ccf7d086 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 14 Apr 2022 19:05:21 -0500 Subject: [PATCH] fix error --- src/Compute/Compute/StorageServices/AddAzureVhdCommand.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Compute/Compute/StorageServices/AddAzureVhdCommand.cs b/src/Compute/Compute/StorageServices/AddAzureVhdCommand.cs index 653040ae43de..e6054494bf25 100644 --- a/src/Compute/Compute/StorageServices/AddAzureVhdCommand.cs +++ b/src/Compute/Compute/StorageServices/AddAzureVhdCommand.cs @@ -50,7 +50,6 @@ public class AddAzureVhdCommand : ComputeClientBaseCmdlet private const int DefaultNumberOfUploaderThreads = 8; private const string DefaultParameterSet = "DefaultParameterSet"; private const string DirectUploadToManagedDiskSet = "DirectUploadToManagedDiskSet"; - private bool ConvertedResized = false; private long FixedSize; [Parameter( @@ -554,7 +553,6 @@ private void convertVhd() } WriteVerbose("Converted file: " + ConvertedPath); this.LocalFilePath = new FileInfo(vhdFileInfo.FullName); - ConvertedResized = true; } } catch (System.Management.ManagementException ex) @@ -617,7 +615,6 @@ private void resizeVhdFile(long FileSize) } WriteVerbose("Resized " + this.LocalFilePath + " from " + sizeBefore + " bytes to " + FullFileSize + " bytes."); this.LocalFilePath = new FileInfo(this.LocalFilePath.FullName); - ConvertedResized = true; FixedSize = FullFileSize; } }