Skip to content

Commit

Permalink
Refactor: Simplify local logic
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Sep 5, 2020
1 parent 84413f6 commit 20bf109
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions metaschema/templates/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ func GenerateModels(metaschema *parser.Metaschema, baseDir, pkgDir string) error
}

_, err = f.Write(p)
if err != nil {
return err
}

return nil
return err
}

func newTemplate(baseDir string) (*template.Template, error) {
Expand Down

0 comments on commit 20bf109

Please sign in to comment.