mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc/gen: remove unused named return (#2069)
This commit is contained in:
committed by
GitHub
parent
a98798ebbc
commit
56016d56d6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user