File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -955,10 +955,10 @@ x.Parent is CodeIndexer ||
955
955
956
956
Parallel . ForEach ( unmappedRequestBuilderTypes , parallelOptions , x =>
957
957
{
958
- var parentClass = x . Parent ? . Parent as CodeClass ;
959
958
var parentNS = x . Parent ? . Parent ? . Parent as CodeNamespace ;
959
+ CodeClass [ ] exceptions = x . Parent ? . Parent is CodeClass parentClass ? [ parentClass ] : [ ] ;
960
960
x . TypeDefinition = parentNS ? . FindChildrenByName < CodeClass > ( x . Name )
961
- . Except ( [ parentClass ] ) . OfType < CodeClass > ( ) // the property method should not reference itself as a return type.
961
+ . Except ( exceptions ) // the property method should not reference itself as a return type.
962
962
. MinBy ( shortestNamespaceOrder ) ;
963
963
// searching down first because most request builder properties on a request builder are just sub paths on the API
964
964
if ( x . TypeDefinition == null )
You can’t perform that action at this time.
0 commit comments