Skip to content

Commit

Permalink
refactor stringify function declarations of query
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Apr 18, 2024
1 parent 1130c4e commit 422cc9d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ func (e *Query) writeTo(s *strings.Builder) {
for _, im := range e.Imports {
im.writeTo(s)
}
for i, fd := range e.FuncDefs {
if i > 0 {
s.WriteByte(' ')
}
for _, fd := range e.FuncDefs {
fd.writeTo(s)
}
if len(e.FuncDefs) > 0 {
s.WriteByte(' ')
}
if e.Func != "" {
Expand Down

0 comments on commit 422cc9d

Please sign in to comment.