Commit 3c34963f authored by Adam Reese's avatar Adam Reese

fix(client): remove redundant type conversion

parent 275bc13b
...@@ -86,7 +86,7 @@ func (c *Client) SetTransport(tr http.RoundTripper) *Client { ...@@ -86,7 +86,7 @@ func (c *Client) SetTransport(tr http.RoundTripper) *Client {
// SetTimeout sets a timeout for http connections // SetTimeout sets a timeout for http connections
func (c *Client) SetTimeout(seconds int) *Client { func (c *Client) SetTimeout(seconds int) *Client {
c.HTTPTimeout = time.Duration(time.Duration(seconds) * time.Second) c.HTTPTimeout = time.Duration(seconds) * time.Second
return c return c
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment