Skip to content

Commit 2ebb39c

Browse files
authored
Merge branch 'main' into Resources
2 parents a8651b5 + f753fe1 commit 2ebb39c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

identity-server/src/Storage/Models/IdentityProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public class IdentityProvider
4040
/// </summary>
4141
public IdentityProvider(string type)
4242
{
43-
Type = type ?? throw new ArgumentNullException(nameof(type));
43+
ArgumentException.ThrowIfNullOrWhiteSpace(type);
44+
Type = type;
4445
}
4546

4647
/// <summary>

0 commit comments

Comments
 (0)