From 163b3e39f50752fe199e391a68fb2e8a0c031f98 Mon Sep 17 00:00:00 2001 From: alex-fang Date: Thu, 14 Dec 2023 17:19:34 -0500 Subject: [PATCH] Formatting --- src/D2L.Bmx/UpdateHandler.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/D2L.Bmx/UpdateHandler.cs b/src/D2L.Bmx/UpdateHandler.cs index ffcbee62..cc0fbf66 100644 --- a/src/D2L.Bmx/UpdateHandler.cs +++ b/src/D2L.Bmx/UpdateHandler.cs @@ -1,7 +1,7 @@ -using System.IO.Compression; -using System.Runtime.InteropServices; using System.Formats.Tar; +using System.IO.Compression; using System.Reflection; +using System.Runtime.InteropServices; namespace D2L.Bmx; @@ -64,7 +64,7 @@ public async Task HandleAsync() { ); } catch( Exception ex ) { File.Move( backupPath, currentProcessPath ); - throw new BmxException( "Failed to update", ex ); + throw new BmxException( "Failed to update with new files", ex ); } finally { File.Delete( downloadPath ); } @@ -98,7 +98,7 @@ public static void Cleanup() { } private static void DecompressTarGzipFile( string compressedFilePath, string decompressedFilePath ) { - string tarPath = Path.Combine( decompressedFilePath , "bmx.tar" ); + string tarPath = Path.Combine( decompressedFilePath, "bmx.tar" ); using( FileStream compressedFileStream = File.Open( compressedFilePath, FileMode.Open, @@ -112,7 +112,7 @@ private static void DecompressTarGzipFile( string compressedFilePath, string dec try { TarFile.ExtractToDirectory( tarPath, decompressedFilePath, true ); - } finally { + } finally { File.Delete( tarPath ); } }