diff options
Diffstat (limited to 'src/coreclr/tools/Common/CommandLine/ArgumentToken.cs')
-rw-r--r-- | src/coreclr/tools/Common/CommandLine/ArgumentToken.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/tools/Common/CommandLine/ArgumentToken.cs b/src/coreclr/tools/Common/CommandLine/ArgumentToken.cs index c93c63f961b..83ef63435d8 100644 --- a/src/coreclr/tools/Common/CommandLine/ArgumentToken.cs +++ b/src/coreclr/tools/Common/CommandLine/ArgumentToken.cs @@ -49,14 +49,14 @@ namespace Internal.CommandLine public override bool Equals(object obj) { - if (ReferenceEquals(obj, null)) + if (obj is null) return false; if (ReferenceEquals(obj, this)) return true; var other = obj as ArgumentToken; - return !ReferenceEquals(other, null) && Equals(other); + return other is not null && Equals(other); } public override int GetHashCode() |