Browse Source

lint: address gofumpt issues

Signed-off-by: Dominik Menke <[email protected]>
Dominik Menke 8 months ago
parent
commit
6c1e21572a
2 changed files with 4 additions and 3 deletions
  1. 4 2
      cmd/compose/top.go
  2. 0 1
      cmd/compose/top_test.go

+ 4 - 2
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)

+ 0 - 1
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())
-
 	})
 }