bytes,strings: remove redundant return statement for Lines

To make it more idiomatic.

Change-Id: If48ae9931908e515df7f23185aac6f84aac72084
GitHub-Last-Rev: 525ed5031a08388f637bd2a09bd47c9e25df21f1
GitHub-Pull-Request: golang/go#71838
Reviewed-on: https://go-review.googlesource.com/c/go/+/650595
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Commit-Queue: Robert Griesemer <gri@google.com>
This commit is contained in:
Jes Cok 2025-02-19 15:07:53 +00:00 committed by Gopher Robot
parent 6e0a81ac61
commit 3c05790d48
2 changed files with 0 additions and 2 deletions

View File

@ -28,7 +28,6 @@ func Lines(s []byte) iter.Seq[[]byte] {
return return
} }
} }
return
} }
} }

View File

@ -28,7 +28,6 @@ func Lines(s string) iter.Seq[string] {
return return
} }
} }
return
} }
} }