Skip to content

Commit

Permalink
Update src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Eastman <[email protected]>
  • Loading branch information
baywet and andrueastman authored Mar 23, 2023
1 parent d528c91 commit 925f333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ private void WriteConstructorBody(CodeClass parentClass, CodeMethod currentMetho
currentMethod.Parameters.OfKind(CodeParameterKind.PathParameters) is CodeParameter pathParametersParam &&
parentClass.Properties.OfKind(CodePropertyKind.PathParameters) is CodeProperty pathParametersProperty)
conventions.AddParametersAssignment(writer,
pathParametersParam.Type.AllTypes.OfType<CodeType>().FirstOrDefault(),
pathParametersParam.Type.AllTypes.FirstOrDefault(),
pathParametersParam.Name.ToFirstCharacterLowerCase(),
$"m.{BaseRequestBuilderVarName}.{pathParametersProperty.Name.ToFirstCharacterUpperCase()}",
false,
Expand Down

0 comments on commit 925f333

Please sign in to comment.