Skip to content

Commit

Permalink
Fix update from community repo (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 29, 2021
1 parent f18a977 commit b7d8ae1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nanoFirmwareFlasher/FirmwarePackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()

HttpResponseMessage response = await _cloudsmithClient.GetAsync(requestUri);

var responseBody = await response.Content.ReadAsStringAsync();
string responseBody = await response.Content.ReadAsStringAsync();

// check for empty array
if (responseBody == "[]")
Expand All @@ -167,7 +167,9 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()

requestUri = $"{_cloudsmithPackages}/{_communityTargetsRepo}/?page=1&query={_targetName} {fwVersion}";

await _cloudsmithClient.GetAsync(requestUri);
response = await _cloudsmithClient.GetAsync(requestUri);

responseBody = await response.Content.ReadAsStringAsync();

if (responseBody == "[]")
{
Expand Down

0 comments on commit b7d8ae1

Please sign in to comment.