Shorten an error path
This commit is contained in:
parent
3c5bd59dc7
commit
1e71d0e45e
@ -260,11 +260,7 @@ func genGo(constFile, procFile io.Writer) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := t.Execute(procFile, Gen); err != nil {
|
return t.Execute(procFile, Gen)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// constNameTransform changes an upcased, snake-style name like
|
// constNameTransform changes an upcased, snake-style name like
|
||||||
|
Loading…
Reference in New Issue
Block a user