Skip to content

Commit

Permalink
remove unused body = make(...) call
Browse files Browse the repository at this point in the history
Signed-off-by: jnichols <mail@jnichols.info>
  • Loading branch information
jnichols-git committed Jan 10, 2024
1 parent 55936b6 commit 5fafeea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/backends/clickhouse/handler_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func (c *Client) QueryHandler(w http.ResponseWriter, r *http.Request) {
}
var body []byte
if sqlQuery != "" {
body = make([]byte, 0, len(sqlQuery)+len(b))
body = append([]byte(sqlQuery), b...)
q.Del(upQuery)
r.URL.RawQuery = q.Encode()
Expand Down

0 comments on commit 5fafeea

Please sign in to comment.