Removed unnecessary EnsureDirPath call

This commit is contained in:
Jay 2022-12-04 20:22:07 +05:30
parent 7db99b10bc
commit 3f9ae1cabb

View file

@ -184,8 +184,6 @@ func processTableSQLBuilder(fileTypes, dirPath string,
func generateSetSchema(dirPath, fileTypes string, schemaMetadata metadata.Schema, builders []TableSQLBuilder) { func generateSetSchema(dirPath, fileTypes string, schemaMetadata metadata.Schema, builders []TableSQLBuilder) {
basePath := path.Join(dirPath, builders[0].Path) basePath := path.Join(dirPath, builders[0].Path)
err := utils.EnsureDirPath(basePath)
throw.OnError(err)
schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name) schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name)
methodName := fmt.Sprintf("Set%sSchema", schemaIdentifier) methodName := fmt.Sprintf("Set%sSchema", schemaIdentifier)