From 57086977ee87ece1c87a18dc26f7219b725d2835 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 7 Apr 2026 12:24:24 -0700 Subject: [PATCH] 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. --- weed/shell/command_s3_helpers.go | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 weed/shell/command_s3_helpers.go diff --git a/weed/shell/command_s3_helpers.go b/weed/shell/command_s3_helpers.go deleted file mode 100644 index 4851f9fca..000000000 --- a/weed/shell/command_s3_helpers.go +++ /dev/null @@ -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], ", ") + "..." -}