Skip to content

Commit

Permalink
cmd/sszgen: fix a formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jul 25, 2024
1 parent 4a1ecf0 commit 73b8b35
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion cmd/sszgen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@ func generateDefineSSZ(ctx *genContext, typ *sszContainer) ([]byte, error) {
}
}
if !typ.static {
fmt.Fprint(&b, "\n // Define the dynamic data (fields)\n")
if typ.forks[len(typ.forks)-1] == "" {
fmt.Fprint(&b, "\n")
}
fmt.Fprint(&b, " // Define the dynamic data (fields)\n")
var (
dynIndices []int
dynFields []string
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73b8b35

Please sign in to comment.