```
14:26:43 client/client.go:255:9: SA4001: &*x will be simplified to x. It will not copy x. (staticcheck)
14:26:43 return &*cli.client
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -252,7 +252,8 @@ func (cli *Client) DaemonHost() string {
|
| 252 | 252 |
|
| 253 | 253 |
// HTTPClient returns a copy of the HTTP client bound to the server |
| 254 | 254 |
func (cli *Client) HTTPClient() *http.Client {
|
| 255 |
- return &*cli.client |
|
| 255 |
+ c := *cli.client |
|
| 256 |
+ return &c |
|
| 256 | 257 |
} |
| 257 | 258 |
|
| 258 | 259 |
// ParseHostURL parses a url string, validates the string is a host url, and |