fix(client): remove redundant type conversion

pull/390/head
Adam Reese 10 years ago committed by jackgr
parent 6fbc5711cb
commit ecd28bcafa

@ -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
} }

Loading…
Cancel
Save