mirror of
https://github.com/containers/podman.git
synced 2025-11-29 01:28:22 +08:00
use strings.SplitSeq where possible
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -145,7 +145,7 @@ func (p *NotifyProxy) listen() {
|
||||
sBuilder.Write(buffer[:n])
|
||||
var isBarrier, isReady bool
|
||||
|
||||
for _, line := range strings.Split(sBuilder.String(), "\n") {
|
||||
for line := range strings.SplitSeq(sBuilder.String(), "\n") {
|
||||
switch line {
|
||||
case _notifyRdyMsg:
|
||||
isReady = true
|
||||
|
||||
Reference in New Issue
Block a user