Przeglądaj źródła

Remove a useless cast

jvoisin 1 rok temu
rodzic
commit
7967ce4df2
1 zmienionych plików z 1 dodań i 1 usunięć
  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,
 	}
 }