entc/gen: remove unused named return (#2069)

This commit is contained in:
Alexander Melentyev
2021-10-27 12:37:47 +03:00
committed by GitHub
parent a98798ebbc
commit 56016d56d6

View File

@@ -52,7 +52,7 @@ func LoadGraph(schemaPath string, cfg *gen.Config) (*gen.Graph, error) {
// IDType: &field.TypeInfo{Type: field.TypeInt},
// })
//
func Generate(schemaPath string, cfg *gen.Config, options ...Option) (err error) {
func Generate(schemaPath string, cfg *gen.Config, options ...Option) error {
if cfg.Target == "" {
abs, err := filepath.Abs(schemaPath)
if err != nil {