Skip to content

Commit

Permalink
Move a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Jan 25, 2024
1 parent 088e324 commit e34ad34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ProfanityFilter.Action/ProfanityProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public async Task ProcessProfanityAsync()
?? 0L)!;

await handler(numberOrId, summary, label ?? null);

if (!summary.IsEmptyBuffer)
{
await summary.WriteAsync(new() { Overwrite = true });
}
}
catch (Exception ex)
{
Expand All @@ -62,11 +67,6 @@ public async Task ProcessProfanityAsync()
{
if (success)
{
if (!summary.IsEmptyBuffer)
{
await summary.WriteAsync(new() { Overwrite = true });
}

core.Info("Profanity filter completed successfully.");
Env.Exit(0);
}
Expand Down

0 comments on commit e34ad34

Please sign in to comment.