refactor goctl (#902)

This commit is contained in:
Kevin Wan
2021-08-11 18:04:42 +08:00
committed by GitHub
parent 0b0406f41a
commit 1fb356f328
3 changed files with 5 additions and 7 deletions

View File

@@ -66,7 +66,6 @@ func (p parser) convert2Spec() error {
func (p parser) fillInfo() {
properties := make(map[string]string)
if p.ast.Info != nil {
p.spec.Info = spec.Info{}
for _, kv := range p.ast.Info.Kvs {
properties[kv.Key.Text()] = kv.Value.Text()
}