Fix buf call after put buffer call
This commit is contained in:
parent
b522ab6a75
commit
6ba9e17ebf
2 changed files with 1 additions and 2 deletions
|
@ -93,7 +93,6 @@ func executeTemplates(e executeTemplateData) error {
|
||||||
|
|
||||||
imps.standard = e.importSet.standard
|
imps.standard = e.importSet.standard
|
||||||
imps.thirdParty = e.importSet.thirdParty
|
imps.thirdParty = e.importSet.thirdParty
|
||||||
|
|
||||||
for _, tplName := range e.templates.Templates() {
|
for _, tplName := range e.templates.Templates() {
|
||||||
if e.combineImportsOnType {
|
if e.combineImportsOnType {
|
||||||
imps = combineTypeImports(imps, importsBasedOnType, e.data.Table.Columns)
|
imps = combineTypeImports(imps, importsBasedOnType, e.data.Table.Columns)
|
||||||
|
|
|
@ -293,6 +293,7 @@ func TitleCaseIdentifier(id string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
buf := GetBuffer()
|
buf := GetBuffer()
|
||||||
|
defer PutBuffer(buf)
|
||||||
lastDot := 0
|
lastDot := 0
|
||||||
ln := len(id)
|
ln := len(id)
|
||||||
addDots := false
|
addDots := false
|
||||||
|
@ -320,7 +321,6 @@ func TitleCaseIdentifier(id string) string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PutBuffer(buf)
|
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue