mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
replace strings.Split with SplitSeq
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -281,7 +281,7 @@ func getPGSQLHostsAndPorts(configHost string, configPort int) (string, string) {
|
||||
defaultPort = "5432"
|
||||
}
|
||||
|
||||
for _, hostport := range strings.Split(configHost, ",") {
|
||||
for hostport := range strings.SplitSeq(configHost, ",") {
|
||||
hostport = strings.TrimSpace(hostport)
|
||||
if hostport == "" {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user