Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Aug 29, 2024
1 parent 93bd0b9 commit 269c1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.OpenApi/Services/CopyReferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ private void EnsureCallbacksExist()

private void EnsureLinksExist()
{
_target.Components.Callbacks ??= new Dictionary<string, OpenApiCallback>();
_target.Components.Links ??= new Dictionary<string, OpenApiLink>();
}

private void EnsureSecuritySchemesExist()
{
_target.Components.Callbacks ??= new Dictionary<string, OpenApiCallback>();
_target.Components.SecuritySchemes ??= new Dictionary<string, OpenApiSecurityScheme>();
}
}
}

0 comments on commit 269c1c7

Please sign in to comment.