Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-fang authored and alex-fang committed Dec 14, 2023
1 parent 192bae9 commit 163b3e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/D2L.Bmx/UpdateHandler.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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 );
}
Expand Down Expand Up @@ -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,
Expand All @@ -112,7 +112,7 @@ private static void DecompressTarGzipFile( string compressedFilePath, string dec

try {
TarFile.ExtractToDirectory( tarPath, decompressedFilePath, true );
} finally {
} finally {
File.Delete( tarPath );
}
}
Expand Down

0 comments on commit 163b3e3

Please sign in to comment.