From 6f8d5da9c9c3684ae223a3a248621f4c5f530840 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Thu, 24 Sep 2020 17:17:33 -0500 Subject: [PATCH] =?UTF-8?q?refactor(logging):=20=E2=99=BB=20simplify=20Hos?= =?UTF-8?q?tRunner=20return=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FilterLists.SharedKernel.Logging/HostRunner.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs index ebf0818bb..39f708e58 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs @@ -8,7 +8,7 @@ namespace FilterLists.SharedKernel.Logging { public static class HostRunner { - public static async Task TryRunWithLoggingAsync(this IHost host, Func? runPreHostAsync = default) + public static async Task TryRunWithLoggingAsync(this IHost host, Func? runPreHostAsync = default) { _ = host ?? throw new ArgumentNullException(nameof(host)); @@ -27,7 +27,6 @@ public static async Task TryRunWithLoggingAsync(this IHost host, Func Log.Information("Initializing host"); await host.RunAsync(); - return 0; } catch (Exception ex) {