This commit is contained in:
2026-03-24 19:32:43 +01:00
parent 27d68986c5
commit 7223da54b4
8 changed files with 19 additions and 40 deletions
@@ -35,9 +35,7 @@ namespace Musify.Infrastructure.Messaging.Activities
var destinationFilePath = executeContext.GetVariable<string>(executeContext.Arguments.DestinationFilePathVariableName);
if (string.IsNullOrWhiteSpace(sourceFilePath) || string.IsNullOrWhiteSpace(destinationFilePath))
{
throw new InvalidOperationException("Resize activity requires source and destination file path variables.");
}
try
{
@@ -96,11 +94,7 @@ namespace Musify.Infrastructure.Messaging.Activities
{
try
{
if (File.Exists(compensateContext.Log.DestinationFilePath))
{
File.Delete(compensateContext.Log.DestinationFilePath);
}
File.Delete(compensateContext.Log.DestinationFilePath);
return Task.FromResult(compensateContext.Compensated());
}
catch (Exception exception)