Skip to content

Commit

Permalink
Use OfKind extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkiage committed Feb 16, 2022
1 parent 97671bd commit 5c0347c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Refiners/ShellRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void CreateCommandBuilders(CodeElement currentElement)
CreateCommandBuildersFromRequestExecutors(currentClass, classHasIndexers, requestExecutors);

// Build root command
var clientConstructor = currentClass.GetChildElements().OfType<CodeMethod>().FirstOrDefault(m => m.MethodKind == CodeMethodKind.ClientConstructor);
var clientConstructor = currentClass.GetChildElements().OfType<CodeMethod>().FirstOrDefault(m => m.IsOfKind(CodeMethodKind.ClientConstructor));
if (clientConstructor != null)
{
var rootMethod = new CodeMethod
Expand Down

0 comments on commit 5c0347c

Please sign in to comment.