From the Go specification: "1. For a nil slice, the number of iterations is 0." [1] Therefore, an additional nil check for before the loop is unnecessary. [1]: https://go.dev/ref/spec#For_range Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> |
||
|---|---|---|
| .. | ||
| bpf | ||
| build | ||
| testhelper | ||
| context.go | ||
| dummy.go | ||
| helpers_disabled.go | ||
| helpers_test.go | ||
| helpers.go | ||
| trace_bpfel_x86.go | ||
| trace_bpfel_x86.o | ||