Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorKrolic committed Oct 22, 2024
1 parent d0e3976 commit 3f2894c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArgumentParsing/Results/Errors/ParseError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private protected ParseError(string messageFormat)

/// <inheritdoc/>
public sealed override bool Equals(object? obj)
=> obj is ParseError error && Equals(error);
=> Equals(obj as ParseError);

/// <inheritdoc/>
public abstract override int GetHashCode();
Expand Down

0 comments on commit 3f2894c

Please sign in to comment.