mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
*: modernize codebase with newer syntax / helpers (#4110)
Changes came from running https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize on the codebase.
This commit is contained in:
@ -42,7 +42,7 @@ func assertNoError(err error, t testing.TB, s string) {
|
||||
func TestSplicedReader(t *testing.T) {
|
||||
data := []byte{}
|
||||
data2 := []byte{}
|
||||
for i := 0; i < 100; i++ {
|
||||
for i := range 100 {
|
||||
data = append(data, byte(i))
|
||||
data2 = append(data2, byte(i+100))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user