Skip to content

Commit 4705f27

Browse files
authored
Merge pull request #3848 from cormacpayne/breaking-change-fix
Fix issue with breaking change tool handling multiple lists in output
2 parents 82ffc08 + c782451 commit 4705f27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/StaticAnalysis/BreakingChangeAnalyzer/CmdletMetadataHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ private void CheckForChangedOutputType(
220220
// Add each output in the new metadata to the dictionary
221221
foreach (var newOutput in newCmdlet.OutputTypes)
222222
{
223-
outputDictionary.Add(newOutput.Type.Name, newOutput.Type);
223+
if (!outputDictionary.ContainsKey(newOutput.Type.Name))
224+
{
225+
outputDictionary.Add(newOutput.Type.Name, newOutput.Type);
226+
}
224227
}
225228

226229
// For each output in the old metadata, see if it

0 commit comments

Comments
 (0)