Skip to content

Commit

Permalink
fix typ mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Mar 26, 2021
1 parent a370f79 commit b381c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pgd/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ func (m *Module) applyUnmarshal(f *jen.File, in pgs.File) error {

stmts := []jen.Code{}

typeName := fmt.Sprintf("type.googleapis.com/%s.%s", msg.Package().ProtoName().String(), msg.Name())
typeName := fmt.Sprintf("%s.%s", msg.Package().ProtoName().String(), msg.Name())

stmts = append(stmts,
jen.List(jen.Id(typeField), jen.Id("ok")).Op(":=").Id("av").Dot("M").Index(jen.Lit(typeField)),
Expand Down

0 comments on commit b381c6c

Please sign in to comment.