diff --git a/src/ProfanityFilter.Action/ProfanityProcessor.cs b/src/ProfanityFilter.Action/ProfanityProcessor.cs index 5e3a479..74ce166 100644 --- a/src/ProfanityFilter.Action/ProfanityProcessor.cs +++ b/src/ProfanityFilter.Action/ProfanityProcessor.cs @@ -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) { @@ -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); }