Commit ecf4980
authored
refactor(astutils): remove redundant nil check in
From the Go docs:
"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 <[email protected]>Walk (#2660)1 parent 8be0e2f commit ecf4980
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2158 | 2158 | | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
| 2161 | + | |
| 2162 | + | |
2165 | 2163 | | |
2166 | 2164 | | |
2167 | 2165 | | |
| |||
0 commit comments