Skip to content

Commit

Permalink
Update src/Kiota.Builder/Refiners/TypeScriptRefiner.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Eastman <[email protected]>
  • Loading branch information
baywet and andrueastman committed Dec 6, 2023
1 parent d4ff800 commit 045fba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Refiners/TypeScriptRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private static void RemoveSelfReferencingUsingForFile(CodeFile codeFile, CodeNam
}
private static void RemoveSelfReferencingUsings(CodeElement currentElement)
{
if (currentElement is CodeFile codeFile && codeFile.Parent is CodeNamespace codeNamespace)
if (currentElement is CodeFile { Parent: CodeNamespace codeNamespace } codeFile)
RemoveSelfReferencingUsingForFile(codeFile, codeNamespace);

CrawlTree(currentElement, RemoveSelfReferencingUsings);
Expand Down

0 comments on commit 045fba0

Please sign in to comment.