Skip to content

Commit 3b32a26

Browse files
authored
Merge pull request #38 from Bardin08/vbardin/fix-null-warning
fix: Nullability check warning
2 parents fd3481e + 1a314fb commit 3b32a26

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

examples/ConsoleApp/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using System.Collections.Immutable;
2-
using Serilog;
1+
using Serilog;
32
using Serilog.Events;
4-
using X.Serilog.Sinks.Telegram.Batch.Rules;
53
using X.Serilog.Sinks.Telegram.Configuration;
64
using X.Serilog.Sinks.Telegram.Extensions;
75
using X.Serilog.Sinks.Telegram.Filters.Fluent;

src/X.Serilog.Sinks.Telegram/Extensions/DependencyInjectionExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Collections.Immutable;
22
using X.Serilog.Sinks.Telegram.Batch.Rules;
33
using X.Serilog.Sinks.Telegram.Configuration;
4-
using X.Serilog.Sinks.Telegram.Filters.Fluent;
54

65
namespace X.Serilog.Sinks.Telegram.Extensions;
76

@@ -51,7 +50,7 @@ private static LoggerConfiguration TelegramCoreInternal(
5150
ApplyLogFilters = false
5251
};
5352
},
54-
messageFormatter: null!,
53+
messageFormatter: null,
5554
restrictedToMinimumLevel: logLevel);
5655
}
5756
}

src/X.Serilog.Sinks.Telegram/Extensions/LoggerConfigurationTelegramExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class LoggerConfigurationTelegramExtensions
1414
public static LoggerConfiguration Telegram(
1515
this LoggerSinkConfiguration loggerConfiguration,
1616
Action<TelegramSinkConfiguration> configureAction,
17-
IMessageFormatter messageFormatter,
17+
IMessageFormatter? messageFormatter,
1818
LogEventLevel restrictedToMinimumLevel = LevelAlias.Minimum)
1919
{
2020
if (loggerConfiguration == null)

0 commit comments

Comments
 (0)