From e6a55d1d3ea40bb6d72de8c2d52b8f08bf3267fa Mon Sep 17 00:00:00 2001 From: Weihan Li Date: Tue, 10 Dec 2024 23:51:45 +0800 Subject: [PATCH] refactor: fix nullability warning --- src/WeihanLi.Common/Logging/LoggerGeneric.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/WeihanLi.Common/Logging/LoggerGeneric.cs b/src/WeihanLi.Common/Logging/LoggerGeneric.cs index 7db12637..9f840e91 100644 --- a/src/WeihanLi.Common/Logging/LoggerGeneric.cs +++ b/src/WeihanLi.Common/Logging/LoggerGeneric.cs @@ -26,12 +26,7 @@ public GenericLogger(ILoggerFactory factory, IOptions opti } /// -#if NET7_0_OR_GREATER - IDisposable? -#else - IDisposable -#endif - ILogger.BeginScope(TState state) + IDisposable? ILogger.BeginScope(TState state) { return _logger.BeginScope(state); }