Skip to content

Commit

Permalink
Fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Jul 27, 2023
1 parent 20c8d34 commit c1485fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Config struct {

type GenOutput struct {
Code string
*TemplateSource
TemplateSource
}

func Generate(proto *schema.WebRPCSchema, target string, config *Config) (out *GenOutput, err error) {
Expand All @@ -46,7 +46,7 @@ func Generate(proto *schema.WebRPCSchema, target string, config *Config) (out *G
if err != nil {
return genOutput, err
}
genOutput.TemplateSource = tmplSource
genOutput.TemplateSource = *tmplSource

// Generate deterministic schema hash of the proto file
schemaHash, err := proto.SchemaHash()
Expand Down

0 comments on commit c1485fb

Please sign in to comment.