Skip to content

Commit 1523faa

Browse files
Remove throw
1 parent 2a03c90 commit 1523faa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/code/GroupPolicyRepositoryEnforcement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ internal static bool IsRepositoryAllowed(Uri repositoryUri)
121121
{
122122
if (key is null)
123123
{
124-
throw new InvalidOperationException("Group policy is not enabled.");
124+
return null;
125125
}
126126

127127
var subKeys = key.GetSubKeyNames();
128128

129129
if (subKeys is null)
130130
{
131-
throw new InvalidOperationException("Group policy is not enabled.");
131+
return null;
132132
}
133133

134134
foreach (var subKey in subKeys)

0 commit comments

Comments
 (0)