From e34ad3497f12ce0ba6fd7ddbe7d99ec1ff6278b3 Mon Sep 17 00:00:00 2001 From: David Pine Date: Thu, 25 Jan 2024 10:03:47 -0600 Subject: [PATCH] Move a few things --- src/ProfanityFilter.Action/ProfanityProcessor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }