From 3f9ae1cabb0b775125c8cb168ce03b372a6291ff Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 4 Dec 2022 20:22:07 +0530 Subject: [PATCH] Removed unnecessary EnsureDirPath call --- generator/template/process.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/generator/template/process.go b/generator/template/process.go index de85d71..a37b374 100644 --- a/generator/template/process.go +++ b/generator/template/process.go @@ -184,8 +184,6 @@ func processTableSQLBuilder(fileTypes, dirPath string, func generateSetSchema(dirPath, fileTypes string, schemaMetadata metadata.Schema, builders []TableSQLBuilder) { basePath := path.Join(dirPath, builders[0].Path) - err := utils.EnsureDirPath(basePath) - throw.OnError(err) schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name) methodName := fmt.Sprintf("Set%sSchema", schemaIdentifier)