mirror of
https://github.com/umputun/reproxy.git
synced 2025-02-16 18:34:30 +02: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) {
|
func (d *dockerClient) ListContainers() ([]containerInfo, error) {
|
||||||
// const APIVersion = "v1.41"
|
// 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/%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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed connection to docker socket: %w", err)
|
return nil, fmt.Errorf("failed connection to docker socket: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user