From 6c1e21572a7c7aba0152307474e10becabd22786 Mon Sep 17 00:00:00 2001 From: Dominik Menke Date: Thu, 13 Mar 2025 11:55:22 +0100 Subject: [PATCH] lint: address gofumpt issues Signed-off-by: Dominik Menke --- cmd/compose/top.go | 6 ++++-- cmd/compose/top_test.go | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/compose/top.go b/cmd/compose/top.go index f5ef97a5c..a4cbc0f40 100644 --- a/cmd/compose/top.go +++ b/cmd/compose/top.go @@ -49,8 +49,10 @@ func topCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) * return topCmd } -type topHeader map[string]int // maps a proc title to its output index -type topEntries map[string]string +type ( + topHeader map[string]int // maps a proc title to its output index + topEntries map[string]string +) func runTop(ctx context.Context, dockerCli command.Cli, backend api.Service, opts topOptions, services []string) error { projectName, err := opts.toProjectName(ctx, dockerCli) diff --git a/cmd/compose/top_test.go b/cmd/compose/top_test.go index 3838fdd18..277219902 100644 --- a/cmd/compose/top_test.go +++ b/cmd/compose/top_test.go @@ -316,7 +316,6 @@ func TestRunTopCore(t *testing.T) { multiple 1 root 1 1 0 12:00 ? 00:00:04 - /entrypoint multiple 1 root 123 1 0 12:00 ? 00:00:42 - sleep infinity `), buf.String()) - }) }