Skip to content

Commit 6c1e215

Browse files
dmkendeloof
authored andcommitted
lint: address gofumpt issues
Signed-off-by: Dominik Menke <[email protected]>
1 parent 33e863a commit 6c1e215

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/compose/top.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ func topCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) *
4949
return topCmd
5050
}
5151

52-
type topHeader map[string]int // maps a proc title to its output index
53-
type topEntries map[string]string
52+
type (
53+
topHeader map[string]int // maps a proc title to its output index
54+
topEntries map[string]string
55+
)
5456

5557
func runTop(ctx context.Context, dockerCli command.Cli, backend api.Service, opts topOptions, services []string) error {
5658
projectName, err := opts.toProjectName(ctx, dockerCli)

cmd/compose/top_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ func TestRunTopCore(t *testing.T) {
316316
multiple 1 root 1 1 0 12:00 ? 00:00:04 - /entrypoint
317317
multiple 1 root 123 1 0 12:00 ? 00:00:42 - sleep infinity
318318
`), buf.String())
319-
320319
})
321320
}
322321

0 commit comments

Comments
 (0)