File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/Microsoft.PowerShell.Commands.Utility/commands/utility Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1335,25 +1335,18 @@ protected override void ProcessRecord()
1335
1335
ValidateTypeName ( ) ;
1336
1336
1337
1337
Dictionary < string , TypeData > alltypes = Context . TypeTable . GetAllTypeData ( ) ;
1338
- Collection < TypeData > typedefs = new ( ) ;
1339
1338
1340
1339
foreach ( string type in alltypes . Keys )
1341
1340
{
1342
1341
foreach ( WildcardPattern pattern in _filter )
1343
1342
{
1344
1343
if ( pattern . IsMatch ( type ) )
1345
1344
{
1346
- typedefs . Add ( alltypes [ type ] ) ;
1345
+ WriteObject ( alltypes [ type ] ) ;
1347
1346
break ;
1348
1347
}
1349
1348
}
1350
1349
}
1351
-
1352
- // write out all the available type definitions
1353
- foreach ( TypeData typedef in typedefs )
1354
- {
1355
- WriteObject ( typedef ) ;
1356
- }
1357
1350
}
1358
1351
}
1359
1352
You can’t perform that action at this time.
0 commit comments