Kaynağa Gözat

remove unused parameter

Signed-off-by: aiordache <[email protected]>
aiordache 5 yıl önce
ebeveyn
işleme
64c517f375
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      cli/cmd/compose/ps.go

+ 2 - 2
cli/cmd/compose/ps.go

@@ -61,7 +61,7 @@ func runPs(ctx context.Context, opts cli.ProjectOptions) error {
 	if err != nil {
 		return err
 	}
-	printSection(os.Stdout, len(serviceList), func(w io.Writer) {
+	printSection(os.Stdout, func(w io.Writer) {
 		for _, service := range serviceList {
 			fmt.Fprintf(w, "%s\t%s\t%d/%d\t%s\n", service.ID, service.Name, service.Replicas, service.Desired, strings.Join(service.Ports, ", "))
 		}
@@ -69,7 +69,7 @@ func runPs(ctx context.Context, opts cli.ProjectOptions) error {
 	return nil
 }
 
-func printSection(out io.Writer, len int, printer func(io.Writer), headers ...string) {
+func printSection(out io.Writer, printer func(io.Writer), headers ...string) {
 	w := tabwriter.NewWriter(out, 20, 1, 3, ' ', 0)
 	fmt.Fprintln(w, strings.Join(headers, "\t"))
 	printer(w)