Skip to content

Commit

Permalink
refactor: fix nullability warning
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Dec 10, 2024
1 parent 37341d7 commit e6a55d1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/WeihanLi.Common/Logging/LoggerGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ public GenericLogger(ILoggerFactory factory, IOptions<GenericLoggerOptions> opti
}

/// <inheritdoc />
#if NET7_0_OR_GREATER
IDisposable?
#else
IDisposable
#endif
ILogger.BeginScope<TState>(TState state)
IDisposable? ILogger.BeginScope<TState>(TState state)
{
return _logger.BeginScope(state);
}
Expand Down

0 comments on commit e6a55d1

Please sign in to comment.