Skip to content

Commit 046a147

Browse files
committed
fix: remove errant space in list output
1 parent a2b5f7d commit 046a147

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/vproxy/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ func listClients(c *cli.Context) error {
218218
fmt.Printf("error reading from daemon: %s\n", err)
219219
os.Exit(1)
220220
}
221-
if !strings.HasSuffix(line, "\n") {
222-
line += "\n"
223-
}
224-
fmt.Print(line)
221+
fmt.Println(strings.TrimSpace(line))
225222
}
226223

227224
}

0 commit comments

Comments
 (0)