all: simplify s[:] to s where s is a slice (#17673)

This commit is contained in:
Emil
2018-09-14 23:07:13 +03:00
committed by Felix Lange
parent 7bb95a9a64
commit 86a03f97d3
14 changed files with 28 additions and 28 deletions

View File

@ -56,7 +56,7 @@ func generateFilter(t *testing.T, symmetric bool) (*Filter, error) {
f.Topics = make([][]byte, topicNum)
for i := 0; i < topicNum; i++ {
f.Topics[i] = make([]byte, 4)
mrand.Read(f.Topics[i][:])
mrand.Read(f.Topics[i])
f.Topics[i][0] = 0x01
}

View File

@ -56,7 +56,7 @@ func generateFilter(t *testing.T, symmetric bool) (*Filter, error) {
f.Topics = make([][]byte, topicNum)
for i := 0; i < topicNum; i++ {
f.Topics[i] = make([]byte, 4)
mrand.Read(f.Topics[i][:])
mrand.Read(f.Topics[i])
f.Topics[i][0] = 0x01
}