Skip to content

Commit b71fa43

Browse files
remove conditional compile
1 parent 660ef17 commit b71fa43

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/Infrastructure/CacheExtensions.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,14 @@ internal static class CacheExtensions
1919
private static readonly JsonSerializerOptions Options;
2020

2121
static CacheExtensions()
22-
{
23-
24-
#if NET6_0_OR_GREATER
22+
{
2523
Options = new JsonSerializerOptions
2624
{
2725
IgnoreReadOnlyFields = true,
2826
IgnoreReadOnlyProperties = true,
2927
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
3028
};
31-
#else
32-
Options = new JsonSerializerOptions
33-
{
34-
IgnoreReadOnlyFields = true,
35-
IgnoreReadOnlyProperties = true,
36-
IgnoreNullValues = true
37-
};
38-
#endif
39-
29+
4030
Options.Converters.Add(new ClaimConverter());
4131
}
4232

0 commit comments

Comments
 (0)