Fix unit test SavePicture function (#435)
This commit is contained in:
1 parent
3ee9fff14a
commit
24cf9be6ae
1 file changed
+1
-1
@@ -24,7 +24,7 @@ namespace Microsoft.eShopWeb.Infrastructure.Services
|
||||
|
||||
public async Task<bool> SavePicture(string pictureName, string pictureBase64)
|
||||
{
|
||||
if (!await UploadFile(pictureName, Convert.FromBase64String(pictureBase64)))
|
||||
if (string.IsNullOrEmpty(pictureBase64) || !await UploadFile(pictureName, Convert.FromBase64String(pictureBase64)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user