Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 04a69f8

Browse files
committed
Get a happy-linter
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 81921ff commit 04a69f8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Gopkg.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/commands/image/formatter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func NewImageFormat(source string, quiet bool, digest bool) formatter.Format {
4040
return format
4141
}
4242

43-
// ImageWrite writes the formatter images using the ImageContext
44-
func ImageWrite(ctx formatter.Context, images []imageDesc) error {
43+
// Write writes the formatter images using the ImageContext
44+
func Write(ctx formatter.Context, images []imageDesc) error {
4545
render := func(format func(subContext formatter.SubContext) error) error {
4646
return imageFormat(ctx, images, format)
4747
}

internal/commands/image/list.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ package image
33
import (
44
"time"
55

6-
"github.com/docker/cli/cli/command/formatter"
7-
86
"github.com/docker/app/internal/packager"
97
"github.com/docker/app/internal/relocated"
108
"github.com/docker/app/internal/store"
119
"github.com/docker/cli/cli/command"
10+
"github.com/docker/cli/cli/command/formatter"
1211
"github.com/docker/cli/cli/config"
1312
"github.com/docker/distribution/reference"
1413
"github.com/docker/docker/pkg/stringid"
@@ -61,7 +60,7 @@ func runList(dockerCli command.Cli, options imageListOption, bundleStore store.B
6160
Format: NewImageFormat(options.format, options.quiet, options.digests),
6261
}
6362

64-
return ImageWrite(ctx, images)
63+
return Write(ctx, images)
6564
}
6665

6766
func getImageDescriptors(bundleStore store.BundleStore) ([]imageDesc, error) {

0 commit comments

Comments
 (0)