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:
parent
0956374a06
commit
e7dbe6d4be
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user