Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
avoid error-log with the code: return "[]"
Browse files Browse the repository at this point in the history
  • Loading branch information
i-maruyama committed May 29, 2021
1 parent 32c1c57 commit d21e8cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Covid19Radar/Covid19Radar/Services/HttpDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ private async Task<string> GetCdnAsync(string url)
{
return await result.Content.ReadAsStringAsync();
}
else if (status == System.Net.HttpStatusCode.NotModified)
{
return "[]";
}
return null;
}
private async Task<string> GetCdnAsync(string url, CancellationToken cancellationToken)
Expand Down

0 comments on commit d21e8cf

Please sign in to comment.