mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Modernize code for Go 1.24
Brought to you by modernize -fix -test ./... Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ func (s *notifySocket) run(pid1 int) error {
|
||||
got := buf[0:r]
|
||||
// systemd-ready sends a single datagram with the state string as payload,
|
||||
// so we don't need to worry about partial messages.
|
||||
for _, line := range bytes.Split(got, []byte{'\n'}) {
|
||||
for line := range bytes.SplitSeq(got, []byte{'\n'}) {
|
||||
if bytes.HasPrefix(got, []byte("READY=")) {
|
||||
fileChan <- line
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user