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:
Kir Kolyshkin
2025-08-13 20:17:05 -07:00
parent b042b6d455
commit 89e59902c4
14 changed files with 17 additions and 25 deletions
+1 -1
View File
@@ -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