Skip to content

Commit 422cc9d

Browse files
committed
refactor stringify function declarations of query
1 parent 1130c4e commit 422cc9d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

query.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,8 @@ func (e *Query) writeTo(s *strings.Builder) {
6363
for _, im := range e.Imports {
6464
im.writeTo(s)
6565
}
66-
for i, fd := range e.FuncDefs {
67-
if i > 0 {
68-
s.WriteByte(' ')
69-
}
66+
for _, fd := range e.FuncDefs {
7067
fd.writeTo(s)
71-
}
72-
if len(e.FuncDefs) > 0 {
7368
s.WriteByte(' ')
7469
}
7570
if e.Func != "" {

0 commit comments

Comments
 (0)