build: use sequence Split introduced in go1.24
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ func filterBlocks(in Params, f func(oi fs.OptionsInfo)) (err error) {
|
||||
return err
|
||||
}
|
||||
blocks := map[string]struct{}{}
|
||||
for _, name := range strings.Split(blocksStr, ",") {
|
||||
for name := range strings.SplitSeq(blocksStr, ",") {
|
||||
if name != "" {
|
||||
blocks[name] = struct{}{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user