mirror of
https://github.com/umputun/reproxy.git
synced 2024-09-11 08:55:25 +03:00
lint: unneeded fmt
This commit is contained in:
parent
2b492d840a
commit
0a9051d528
@ -315,7 +315,7 @@ func NewDockerClient(host, network string) DockerClient {
|
||||
func (d *dockerClient) ListContainers() ([]containerInfo, error) {
|
||||
// const APIVersion = "v1.41"
|
||||
// resp, err := d.client.Get(fmt.Sprintf("http://localhost/%s/containers/json", APIVersion))
|
||||
resp, err := d.client.Get(fmt.Sprintf("http://localhost/containers/json"))
|
||||
resp, err := d.client.Get("http://localhost/containers/json")
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed connection to docker socket: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user