mirror of
https://github.com/containers/podman.git
synced 2025-09-21 11:45:26 +08:00
use strings.SplitSeq where possible
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -288,7 +288,7 @@ func (s *PodmanSession) OutputToString() string {
|
||||
func (s *PodmanSession) OutputToStringArray() []string {
|
||||
var results []string
|
||||
output := string(s.Out.Contents())
|
||||
for _, line := range strings.Split(output, "\n") {
|
||||
for line := range strings.SplitSeq(output, "\n") {
|
||||
if line != "" {
|
||||
results = append(results, line)
|
||||
}
|
||||
|
Reference in New Issue
Block a user