Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Feb 7, 2020
1 parent bf7f963 commit b317fbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/skaffold/docker/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/client"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/pkg/jsonmessage"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
Expand All @@ -42,7 +42,7 @@ import (
)

const (
retrials = 5
retries = 5
sleepTime = 1 * time.Second
)

Expand Down Expand Up @@ -391,7 +391,7 @@ func (l *localDaemon) ImageInspectWithRaw(ctx context.Context, image string) (ty
}

func (l *localDaemon) ImageRemove(ctx context.Context, image string, opts types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) {
for i := 0; i < retrials; i++ {
for i := 0; i < retries; i++ {
resp, err := l.apiClient.ImageRemove(ctx, image, opts)
if err == nil {
return resp, nil
Expand All @@ -401,7 +401,7 @@ func (l *localDaemon) ImageRemove(ctx context.Context, image string, opts types.
}
time.Sleep(sleepTime)
}
return nil, fmt.Errorf("could not remove image after %d retries", retrials)
return nil, fmt.Errorf("could not remove image after %d retries", retries)
}

// GetBuildArgs gives the build args flags for docker build.
Expand Down

0 comments on commit b317fbe

Please sign in to comment.