Skip to content

Commit f906139

Browse files
committed
cli/tree: Use single character triple dot
Using 3 characters instead of 1 to ellipsize a long string is wasteful. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent f4a68da commit f906139

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/image/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ type imgColumn struct {
309309
func truncateRunes(s string, length int) string {
310310
runes := []rune(s)
311311
if len(runes) > length {
312-
return string(runes[:length-3]) + "..."
312+
return string(runes[:length-1]) + ""
313313
}
314314
return s
315315
}

0 commit comments

Comments
 (0)