Skip to content

Commit e6a55d1

Browse files
committed
refactor: fix nullability warning
1 parent 37341d7 commit e6a55d1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/WeihanLi.Common/Logging/LoggerGeneric.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ public GenericLogger(ILoggerFactory factory, IOptions<GenericLoggerOptions> opti
2626
}
2727

2828
/// <inheritdoc />
29-
#if NET7_0_OR_GREATER
30-
IDisposable?
31-
#else
32-
IDisposable
33-
#endif
34-
ILogger.BeginScope<TState>(TState state)
29+
IDisposable? ILogger.BeginScope<TState>(TState state)
3530
{
3631
return _logger.BeginScope(state);
3732
}

0 commit comments

Comments
 (0)