Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eastman <andrueastman@users.noreply.github.com>
  • Loading branch information
baywet and andrueastman committed Jan 10, 2024
1 parent ef81f9c commit e7e8304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Kiota.Builder/CodeDOM/CodeConstant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public string? UriTemplate
Name = $"{codeClass.Name.ToFirstCharacterLowerCase()}UriTemplate",
Kind = CodeConstantKind.UriTemplate,
UriTemplate = urlTemplateProperty.DefaultValue,
OriginalCodeElement = codeClass
};
}
public static CodeConstant? FromRequestBuilderToNavigationMetadata(CodeClass codeClass)
Expand Down
2 changes: 1 addition & 1 deletion src/Kiota.Builder/CodeDOM/CodeInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CodeMethodKind.IndexerBackwardCompatibility or

if (codeClass.Usings.ToArray() is { Length: > 0 } usings)
{
foreach (var usingToCopy in usings.Where(static x => x.Declaration is not null && x.Declaration.TypeDefinition is CodeInterface or CodeClass { Kind: CodeClassKind.RequestBuilder }))
foreach (var usingToCopy in usings.Where(static x => x.Declaration?.TypeDefinition is CodeInterface or CodeClass { Kind: CodeClassKind.RequestBuilder }))
{
usingToCopy.IsErasable = true;
}
Expand Down

0 comments on commit e7e8304

Please sign in to comment.