From 56016d56d6f8d6b39f59b3b02af7f677e559e9e2 Mon Sep 17 00:00:00 2001 From: Alexander Melentyev <55826637+alexander-melentyev@users.noreply.github.com> Date: Wed, 27 Oct 2021 12:37:47 +0300 Subject: [PATCH] entc/gen: remove unused named return (#2069) --- entc/entc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entc/entc.go b/entc/entc.go index c16aba858..9e2d085f0 100644 --- a/entc/entc.go +++ b/entc/entc.go @@ -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 {