From 09e6c88a553967b56fe51317c512dc5cfafa5ffd Mon Sep 17 00:00:00 2001 From: ArvinFarrelP Date: Tue, 21 Apr 2026 18:59:35 +0700 Subject: [PATCH] cmd/utils: improve documentation for SplitAndTrim --- cmd/utils/flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index aff45087db..a7232bf874 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1278,8 +1278,8 @@ func setNAT(ctx *cli.Context, cfg *p2p.Config) { } } -// SplitAndTrim splits input separated by a comma -// and trims excessive white space from the substrings. +// SplitAndTrim splits a comma-separated string into substrings, +// trims surrounding whitespace, and returns only non-empty strings. func SplitAndTrim(input string) (ret []string) { l := strings.Split(input, ",") for _, r := range l {