Browse Source

Remove a useless cast

jvoisin 1 year ago
parent
commit
7967ce4df2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/request.go

+ 1 - 1
client/request.go

@@ -145,7 +145,7 @@ func (r *request) execute(method, path string, data interface{}) (io.ReadCloser,
 
 func (r *request) buildClient() http.Client {
 	return http.Client{
-		Timeout: time.Duration(defaultTimeout * time.Second),
+		Timeout: defaultTimeout * time.Second,
 	}
 }