Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ dotnet_diagnostic.IDE0039.severity = silent
dotnet_diagnostic.IDE0040.severity = warning

# IDE0041: UseIsNullCheck
dotnet_diagnostic.IDE0041.severity = silent
dotnet_diagnostic.IDE0041.severity = warning

# IDE0042: UseDeconstruction
dotnet_diagnostic.IDE0042.severity = silent
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/MshMemberInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ public bool Equals(PSMethodInvocationConstraints other)

public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj))
if (obj is null)
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/engine/PSVersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ public int CompareTo(object version)
/// </summary>
public int CompareTo(SemanticVersion value)
{
if ((object)value == null)
if (value is null)
return 1;

if (Major != value.Major)
Expand Down