Skip to content

Commit 22d66f0

Browse files
committed
Remove redundant compilation conditionals
1 parent c2fb492 commit 22d66f0

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/JsonApiDotNetCore/Serialization/Response/FingerprintGenerator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ namespace JsonApiDotNetCore.Serialization.Response;
66
/// <inheritdoc cref="IFingerprintGenerator" />
77
internal sealed class FingerprintGenerator : IFingerprintGenerator
88
{
9-
#if NET6_0
10-
private static readonly byte[] Separator = Encoding.UTF8.GetBytes("|");
11-
#else
129
private static readonly byte[] Separator = "|"u8.ToArray();
13-
#endif
1410
private static readonly uint[] LookupTable = Enumerable.Range(0, 256).Select(ToLookupEntry).ToArray();
1511

1612
private static uint ToLookupEntry(int index)

test/NoEntityFrameworkTests/NullSafeExpressionRewriterTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,7 @@ public void Can_rewrite_order_by_clause_with_IntPtr()
498498
Parent = new TestResource
499499
{
500500
Id = generator.GetNext(),
501-
#if NET6_0
502-
Pointer = (IntPtr)1
503-
#else
504-
Pointer = 1
505-
#endif
501+
Pointer = (nint)1
506502
}
507503
}
508504
};

0 commit comments

Comments
 (0)