Skip to content

Commit c782451

Browse files
committed
Fix issue with breaking change tool handling multiple lists in output type
1 parent 2a5d1fc commit c782451

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)