Skip to content

Commit

Permalink
DownloadCache refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Nov 11, 2016
1 parent 5625977 commit 22aca51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/FFImageLoading.Common/Cache/DownloadCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public virtual async Task<CacheStream> DownloadAndCacheIfNeededAsync(string url,
() => configuration.Logger.Debug(string.Format("Retry download: {0}", url)));

if (responseBytes == null)
return null;
throw new HttpRequestException("No Content");

if (allowDiskCaching)
{
Expand Down Expand Up @@ -88,7 +88,7 @@ protected virtual async Task<byte[]> DownloadAsync(string url, CancellationToken
throw new HttpRequestException(response.StatusCode.ToString());

if (response.Content == null)
throw new HttpRequestException("No HttpContent");
throw new HttpRequestException("No Content");

using (var cancelReadTimeoutToken = new CancellationTokenSource())
{
Expand Down

0 comments on commit 22aca51

Please sign in to comment.