integration/internal: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-01-20 13:54:28 +01:00
parent 89a4e6b889
commit 9bd3e011e1
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 2 additions and 3 deletions

View file

@ -12,8 +12,8 @@ import (
func HasHubConnectivity(t *testing.T) bool {
t.Helper()
// Set a timeout on the GET at 15s
var timeout = 15 * time.Second
var url = "https://hub.docker.com"
timeout := 15 * time.Second
url := "https://hub.docker.com"
client := http.Client{Timeout: timeout}
resp, err := client.Get(url)

View file

@ -107,7 +107,6 @@ func JobComplete(client client.CommonAPIClient, service swarmtypes.Service) func
tasks, err := client.TaskList(context.Background(), types.TaskListOptions{
Filters: filter,
})
if err != nil {
poll.Error(err)
}