Skip to content

Commit

Permalink
Update src/Modules/SimplCommerce.Module.StorageLocal/LocalStorageServ…
Browse files Browse the repository at this point in the history
…ice.cs
  • Loading branch information
hishamco committed Jan 31, 2025
1 parent 6e952a0 commit 2c43b38
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ public async Task DeleteMediaAsync(string fileName)
}

var filePath = Path.Combine(GlobalConfiguration.WebRootPath, MediaRootFoler, fileName);
if (File.Exists(filePath))
{
await Task.Run(() => File.Delete(filePath));
}
if (File.Exists(filePath))
{
await Task.Run(() => File.Delete(filePath));
}
}
}
Expand Down

0 comments on commit 2c43b38

Please sign in to comment.