Skip to content

Commit a893304

Browse files
committed
Fixed variable warning.
1 parent 59379f3 commit a893304

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/HotChocolate/AspNetCore/src/AspNetCore.Authorization/DefaultAuthorizationHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public DefaultAuthorizationHandler(
4545
throw new ArgumentNullException(nameof(authorizationPolicyCache));
4646
#if NET7_0_OR_GREATER
4747
_canCachePolicies = _authorizationPolicyProvider.AllowsCachingPolicies;
48+
#else
49+
_canCachePolicies = true;
4850
#endif
4951
}
5052

0 commit comments

Comments
 (0)