Skip to content

Commit

Permalink
♻️ use pattern-matching for null-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffynuts committed Jan 6, 2025
1 parent 16c9e9a commit e9e39e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public RequireUnique(string propertyName)
/// <inheritdoc />
public override void Init(Type entityType)
{
if (PropertyType == null)
if (PropertyType is null)
{
throw new InvalidOperationException(
$@"Inheritors of {
Expand Down

0 comments on commit e9e39e3

Please sign in to comment.