Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
imcarolwang committed Oct 21, 2024
1 parent db11dd1 commit 5d866bc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dotnet-svcutil/lib/src/CommandProcessorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,12 +627,7 @@ private async Task ProcessReferencesOptionAsync(CancellationToken cancellationTo
{
for (int idx = this.References.Count - 1; idx >= 0; idx--)
{
var selected = references.Where(x => string.Equals(this.References[idx].Name, x.Name, StringComparison.OrdinalIgnoreCase)).FirstOrDefault();
if (selected != null)
{
this.References[idx] = selected;
}
else
if (!references.Contains(this.References[idx]))
{
this.References.RemoveAt(idx);
}
Expand Down

0 comments on commit 5d866bc

Please sign in to comment.