mirror of
https://github.com/containers/podman.git
synced 2025-09-23 13:13:42 +08:00
use strings.SplitSeq where possible
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -71,7 +71,7 @@ func (n UsernsMode) GetKeepIDOptions() (*KeepIDUserNsOptions, error) {
|
||||
if !hasOpts {
|
||||
return &options, nil
|
||||
}
|
||||
for _, o := range strings.Split(nsopts, ",") {
|
||||
for o := range strings.SplitSeq(nsopts, ",") {
|
||||
opt, val, hasVal := strings.Cut(o, "=")
|
||||
if !hasVal {
|
||||
return nil, fmt.Errorf("invalid option specified: %q", o)
|
||||
|
Reference in New Issue
Block a user