mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
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:
@@ -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], ", ") + "..."
|
||||
}
|
||||
Reference in New Issue
Block a user