Skip to content

Commit

Permalink
CodeQL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
commonsensesoftware committed Nov 8, 2022
1 parent df95bff commit 71d20b3
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,14 @@ public GroupedApiVersionMetadata( string? groupName, ApiVersionMetadata metadata
public string? GroupName { get; }

/// <inheritdoc />
public bool Equals( GroupedApiVersionMetadata? other ) => other is not null && other.GetHashCode() == GetHashCode();
public bool Equals( GroupedApiVersionMetadata? other ) =>
other is not null && other.GetHashCode() == GetHashCode();

/// <inheritdoc />
public override bool Equals( object? obj ) => Equals( obj as GroupedApiVersionMetadata );
public override bool Equals( object? obj ) =>
obj is not null &&
GetType().Equals( obj.GetType() ) &&
GetHashCode() == obj.GetHashCode();

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

0 comments on commit 71d20b3

Please sign in to comment.