mirror of
https://github.com/containers/podman.git
synced 2025-10-13 09:15:20 +08:00
use strings.SplitSeq where possible
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -72,7 +72,7 @@ func StartWithOptions(options *Options) (*Registry, error) {
|
||||
|
||||
// Parse the output.
|
||||
registry := Registry{}
|
||||
for _, s := range strings.Split(out, "\n") {
|
||||
for s := range strings.SplitSeq(out, "\n") {
|
||||
if s == "" {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user