Shorten an error path

This commit is contained in:
Geoff Hickey 2017-11-16 19:27:00 -05:00
parent 3c5bd59dc7
commit 1e71d0e45e

View File

@ -260,11 +260,7 @@ func genGo(constFile, procFile io.Writer) error {
if err != nil {
return err
}
if err := t.Execute(procFile, Gen); err != nil {
return err
}
return nil
return t.Execute(procFile, Gen)
}
// constNameTransform changes an upcased, snake-style name like