refactor and fix strings.Split

This commit is contained in:
chrislu
2022-08-07 01:34:32 -07:00
parent 1a4bf0dcb5
commit 67814a5c79
8 changed files with 11 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/master_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
"github.com/seaweedfs/seaweedfs/weed/util/grace"
"golang.org/x/exp/slices"
"io"
@@ -100,7 +101,7 @@ https://cloud.seaweedfs.com/ui/%s
return
}
for _, c := range strings.Split(cmd, ";") {
for _, c := range util.StringSplit(cmd, ";") {
if processEachCmd(reg, c, commandEnv) {
return
}