Skip to content

Commit b7d8ae1

Browse files
authored
Fix update from community repo (#60)
1 parent f18a977 commit b7d8ae1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nanoFirmwareFlasher/FirmwarePackage.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync()
151151

152152
HttpResponseMessage response = await _cloudsmithClient.GetAsync(requestUri);
153153

154-
var responseBody = await response.Content.ReadAsStringAsync();
154+
string responseBody = await response.Content.ReadAsStringAsync();
155155

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

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

170-
await _cloudsmithClient.GetAsync(requestUri);
170+
response = await _cloudsmithClient.GetAsync(requestUri);
171+
172+
responseBody = await response.Content.ReadAsStringAsync();
171173

172174
if (responseBody == "[]")
173175
{

0 commit comments

Comments
 (0)