Skip to content

Commit

Permalink
translation refactoring work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jul 7, 2023
1 parent 52adb08 commit 55cc864
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/codegen/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (t *Template) GenerateState(pkg string, info *plugin.Info) string {
output = strings.Replace(output, "$Fields", strings.Join(fields, "\n\n"), 1)

registerTypes := t.RegisterFragment("State")

importFragment := ""
imports := Imports{}
imports.AddPackage(info.ChecksumPkg())
Expand All @@ -231,7 +230,6 @@ func (t *Template) GenerateState(pkg string, info *plugin.Info) string {
registerTypes = ""
}
output = strings.Replace(output, "$Imports", importFragment, 1)

output = strings.Replace(output, "$RegisterTypes", registerTypes, 1)
return output
}
Expand Down

0 comments on commit 55cc864

Please sign in to comment.