Skip to content

Commit b800dcd

Browse files
committed
remove redundant nullable
1 parent 5f8ca53 commit b800dcd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/Serilog.Expressions.Tests/Expressions/NameResolverTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
using Serilog.Expressions.Tests.Support;
66
using Xunit;
77

8-
#nullable enable
9-
108
namespace Serilog.Expressions.Tests.Expressions
119
{
1210
public class NameResolverTests
@@ -15,15 +13,15 @@ public class NameResolverTests
1513
{
1614
if (!Coerce.Numeric(number, out var num))
1715
return null;
18-
16+
1917
return new ScalarValue(num + 42);
2018
}
2119

2220
public static LogEventPropertyValue? SecretWordAt(string word, LogEventPropertyValue? index)
2321
{
2422
if (!Coerce.Numeric(index, out var i))
2523
return null;
26-
24+
2725
return new ScalarValue(word[(int)i].ToString());
2826
}
2927

@@ -62,7 +60,7 @@ public void UserDefinedFunctionsAreCallableInExpressions()
6260
nameResolver: new StaticMemberNameResolver(typeof(NameResolverTests)));
6361
Assert.True(Coerce.IsTrue(expr(Some.InformationEvent())));
6462
}
65-
63+
6664
[Fact]
6765
public void UserDefinedFunctionsCanReceiveUserProvidedParameters()
6866
{

0 commit comments

Comments
 (0)