Commit e9272a4
committed
Refactor: simplify items initialization with ternary expression
Address Copilot suggestion to remove redundant initialization by using
a ternary expression instead of if-else block.1 parent ee820fc commit e9272a4
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
| 171 | + | |
173 | 172 | | |
174 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
0 commit comments