shell: remove duplicate joinMax after PR 8954 merge

command_s3_helpers.go defined joinMax which is already in
command_s3_user_list.go from the merged PR 8954.
This commit is contained in:
Chris Lu
2026-04-07 12:24:24 -07:00
parent e2d9ae071c
commit 57086977ee
-11
View File
@@ -1,11 +0,0 @@
package shell
import "strings"
// joinMax joins up to max strings with ", " and appends "..." if truncated.
func joinMax(items []string, max int) string {
if len(items) <= max {
return strings.Join(items, ", ")
}
return strings.Join(items[:max], ", ") + "..."
}