Skip to content

Commit

Permalink
Fix wrong indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda committed Sep 22, 2023
1 parent 3e89ebc commit 56c60ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,10 @@ private void WriteConstructorBody(CodeClass parentClass, CodeMethod currentMetho
var (name, identName) = parameter;
writer.WriteLine($"{pathParametersParameter.Name.ToSnakeCase()}['{name}'] = str({identName})");
}
writer.DecreaseIndent();
}
writer.DecreaseIndent();
writer.WriteLine($"super().__init__({requestAdapterParameter.Name.ToSnakeCase()}, {urlTemplateProperty.DefaultValue ?? ""}, {pathParametersParameter.Name.ToSnakeCase()})");
}

else
writer.WriteLine($"super().__init__({requestAdapterParameter.Name.ToSnakeCase()}, {urlTemplateProperty.DefaultValue ?? ""}, None)");
}
Expand Down

0 comments on commit 56c60ff

Please sign in to comment.