Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored Oct 24, 2023
1 parent 3408bfc commit b3224c4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ public override void Visit(IOpenApiReferenceable referenceable)
/// </summary>
private void AddReference(OpenApiReference reference)
{
if (reference is {IsExternal: true} &&
!_references.ContainsKey(reference.ExternalResource))
if (reference is {IsExternal: true})
{
_references.Add(reference.ExternalResource, reference);
_references.TryAdd(reference.ExternalResource, reference);
}
}
}
Expand Down

0 comments on commit b3224c4

Please sign in to comment.