Skip to content

Commit 56babd0

Browse files
authored
Merge pull request #1826 from masnax/db-lint
cmd/generate-database/db: Fix GetNames spacing
2 parents 7f5949a + 196e4e1 commit 56babd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/generate-database/db/method.go

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ func (m *Method) getNames(buf *file.Buffer) error {
225225
buf.L("queryStr := strings.Join(queryParts[:], \"ORDER BY\")")
226226
buf.L("rows, err = db.QueryContext(ctx, queryStr, args...)")
227227
buf.L("}")
228+
buf.N()
228229
m.ifErrNotNil(buf, true, "nil", "err")
229230
buf.L("defer func() { _ = rows.Close() }()")
230231
buf.L("for rows.Next() {")

0 commit comments

Comments
 (0)