1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

null check response

This commit is contained in:
Kyle Spearrin 2018-08-25 16:52:49 -04:00
parent 0956374a06
commit e7dbe6d4be

View File

@ -90,8 +90,8 @@ namespace Bit.Icons.Services
if(response?.Content == null || !response.IsSuccessStatusCode)
{
_logger.LogInformation("Couldn't load a website: {0}.", response?.StatusCode.ToString() ?? "null");
Cleanup(response);
_logger.LogInformation("Couldn't load a website: {0}.", response.StatusCode);
return null;
}