Skip to content

Commit 4bc47e4

Browse files
committed
Fix IDE0041: Use 'is null' check
1 parent ac27e79 commit 4bc47e4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/JsonApiDotNetCore/Configuration/PageNumber.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public PageNumber(int oneBasedValue)
2525

2626
public bool Equals(PageNumber? other)
2727
{
28-
if (ReferenceEquals(null, other))
28+
if (other is null)
2929
{
3030
return false;
3131
}

src/JsonApiDotNetCore/Configuration/PageSize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public PageSize(int value)
2323

2424
public bool Equals(PageSize? other)
2525
{
26-
if (ReferenceEquals(null, other))
26+
if (other is null)
2727
{
2828
return false;
2929
}

src/JsonApiDotNetCore/Serialization/Response/ResourceObjectTreeNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private void AssertIsTreeRoot()
210210

211211
public bool Equals(ResourceObjectTreeNode? other)
212212
{
213-
if (ReferenceEquals(null, other))
213+
if (other is null)
214214
{
215215
return false;
216216
}

0 commit comments

Comments
 (0)