Commit 2be7f7b
committed
refactor(backstage): simplify condition checks in List function
Remove redundant nil checks for options.Fields and options.Order slices. The len() function already returns 0 for nil slices, making the additional nil check unnecessary.1 parent e84c014 commit 2be7f7b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
0 commit comments