From 925f3338adac6ffab92f783ff43cfd0fb9d468f9 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 23 Mar 2023 08:14:02 -0400 Subject: [PATCH] Update src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs Co-authored-by: Eastman --- src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs b/src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs index f2dba1e515..73d6a95dd2 100644 --- a/src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs +++ b/src/Kiota.Builder/Writers/Go/CodeMethodWriter.cs @@ -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().FirstOrDefault(), + pathParametersParam.Type.AllTypes.FirstOrDefault(), pathParametersParam.Name.ToFirstCharacterLowerCase(), $"m.{BaseRequestBuilderVarName}.{pathParametersProperty.Name.ToFirstCharacterUpperCase()}", false,