Skip to content

Commit cec4de9

Browse files
bluewwYeming Liu
andauthored
Remove temp fix for static analysis failure. (#27428)
Co-authored-by: Yeming Liu <[email protected]>
1 parent 856921b commit cec4de9

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

tools/StaticAnalysis/BreakingChangeAnalyzer/CmdletMetadataHelper.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,9 @@ private void CheckForChangedOutputType(
228228
{
229229
foreach (var newOutput in newCmdlet.OutputTypes)
230230
{
231-
if (newOutput != null && newOutput.Type != null)
231+
if (!outputDictionary.ContainsKey(newOutput.Type.Name))
232232
{
233-
if (!outputDictionary.ContainsKey(newOutput.Type.Name))
234-
{
235-
outputDictionary.Add(newOutput.Type.Name, newOutput.Type);
236-
}
237-
}
238-
else
239-
{
240-
Console.WriteLine("This cmdlet {0} has OutputTypes {1} with null type. Please check.", newCmdlet.Name, newOutput.ToString());
233+
outputDictionary.Add(newOutput.Type.Name, newOutput.Type);
241234
}
242235
}
243236
}

tools/StaticAnalysis/Exceptions/Az.Storage/BreakingChangeIssues.csv

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)