Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit 1434730

Browse files
committed
Now it's really fixed
1 parent 9a276f5 commit 1434730

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Source/Deployer.Raspberry.Gui/App.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using Deployer.Gui.Common;
44
using Deployer.Raspberry.Console;
55
using Deployer.Raspberry.Gui.Views;
6-
using Serilog;
7-
86

97
namespace Deployer.Raspberry.Gui
108
{

Source/Deployer.Raspberry/Tasks/DownloadUefi.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ namespace Deployer.Raspberry.Tasks
1515
public class DownloadUefi : IDeploymentTask
1616
{
1717
private readonly string destination;
18-
private readonly IGitHubClient githubCient;
1918
private readonly IFileSystemOperations fileSystemOperations;
2019

21-
public DownloadUefi(string destination, IGitHubClient githubCient, IFileSystemOperations fileSystemOperations)
20+
public DownloadUefi(string destination, IFileSystemOperations fileSystemOperations)
2221
{
2322
this.destination = destination;
24-
this.githubCient = githubCient;
2523
this.fileSystemOperations = fileSystemOperations;
2624
}
2725

@@ -33,12 +31,10 @@ public async Task Execute()
3331
return;
3432
}
3533

36-
using (var stream = await githubCient.Open("https://github.com/andreiw/RaspberryPiPkg"))
34+
using (var stream = await GitHubMixin.OpenBranchStream("https://github.com/andreiw/RaspberryPiPkg"))
3735
{
3836
var zipArchive = await Observable.Start(() => new ZipArchive(stream, ZipArchiveMode.Read));
39-
4037
var mostRecentFolderEntry = GetMostRecentDirEntry(zipArchive);
41-
4238
var contents = zipArchive.Entries.Where(x => x.FullName.StartsWith(mostRecentFolderEntry.FullName) && !x.FullName.EndsWith("/"));
4339
await ExtractContents(mostRecentFolderEntry, contents);
4440
}

0 commit comments

Comments
 (0)