Skip to content

Commit

Permalink
adding useless error check
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonette committed Jan 17, 2016
1 parent 98eac94 commit 9c78e32
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
// Query is used for retrieving query performance feedback without executing
// the query
func (c *Client) Query(query string, v interface{}) (err error) {

endpoint := fmt.Sprintf("/query/?q=%v", url.QueryEscape(query))
req, err := c.NewRequest("GET", endpoint, nil)

Expand All @@ -18,11 +17,6 @@ func (c *Client) Query(query string, v interface{}) (err error) {
}

err = c.Do(req, &v)

if err != nil {
return
}

return
}

Expand All @@ -38,11 +32,6 @@ func (c *Client) QueryExplain(query string) (explain QueryExplainResponse, err e
}

err = c.Do(req, &explain)

if err != nil {
return
}

return
}

Expand Down

0 comments on commit 9c78e32

Please sign in to comment.