cleanup
This commit is contained in:
parent
9061198e7f
commit
4993940aca
@ -11,7 +11,11 @@ import (
|
|||||||
//go:embed gen.go.tmpl
|
//go:embed gen.go.tmpl
|
||||||
var fileTemplate string
|
var fileTemplate string
|
||||||
|
|
||||||
func render(driver, schemaPath, outputPath string) error {
|
func render(driver, schemaPath, outputPath string) (err error) {
|
||||||
|
outputPath, err = filepath.Abs(outputPath)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
sch, err := parsePath(driver, schemaPath)
|
sch, err := parsePath(driver, schemaPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user