Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenghui Wang committed Sep 21, 2017
1 parent 33bce27 commit 4ac5f02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/repository/thrift_compile.go
Expand Up @@ -395,15 +395,15 @@ func fillInDefinitions(module *Module, program *ast.Program) {

func newEnumSpec(enum *compile.EnumSpec) *EnumSpec {
e := &EnumSpec{
Name: enum.Name,
File: enum.File,
Items: make([]EnumItem, len(enum.Items)),
Name: enum.Name,
File: enum.File,
Items: make([]EnumItem, len(enum.Items)),
Annotations: enum.Annotations,
}
for i, item := range enum.Items{
for i, item := range enum.Items {
e.Items[i].Name = item.Name
e.Items[i].Value = item.Value
e.Items[i].Annotations = item.Annotations
e.Items[i].Annotations = item.Annotations
}
return e
}

0 comments on commit 4ac5f02

Please sign in to comment.