all: simplify s[:] to s where s is a slice (#17673)
This commit is contained in:
@ -100,7 +100,7 @@ func Hex2BytesFixed(str string, flen int) []byte {
|
||||
return h[len(h)-flen:]
|
||||
}
|
||||
hh := make([]byte, flen)
|
||||
copy(hh[flen-len(h):flen], h[:])
|
||||
copy(hh[flen-len(h):flen], h)
|
||||
return hh
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user