Skip to content

Commit

Permalink
Fix endpoint generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Kujtim committed Sep 29, 2017
1 parent f1e7a9d commit 9f01eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generate_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ func (g *generateServiceEndpoints) generateEndpointsClientMethods() {
body := []jen.Code{
jen.Id(rqName).Op(":=").Id(m.Name + "Request").Values(req),
jen.List(jen.Id(rpName), jen.Err()).Op(":=").Id(stp).Dot(m.Name + "Endpoint").Call(
jen.List(jen.Id(ctxN), jen.Id(rpName)),
jen.List(jen.Id(ctxN), jen.Id(rqName)),
),
jen.If(
jen.Err().Op("!=").Nil().Block(
Expand Down

0 comments on commit 9f01eea

Please sign in to comment.