Commit 45f90e7
committed
refactor(Bootstrap): simplify variant candidate creation and error handling
- Replaced the manual iteration for creating variant candidates with a LINQ expression for improved readability.
- Streamlined error handling for mismatched hashes by consolidating the return logic in the TryCreateVariantCandidate method.
- Enhanced code maintainability by reducing the number of lines and improving clarity in the variant management process.1 parent f1141a5 commit 45f90e7
1 file changed
Lines changed: 6 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 175 | | |
183 | | - | |
| 176 | + | |
| 177 | + | |
184 | 178 | | |
185 | 179 | | |
186 | 180 | | |
| |||
234 | 228 | | |
235 | 229 | | |
236 | 230 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
| |||
269 | 259 | | |
270 | 260 | | |
271 | 261 | | |
| 262 | + | |
272 | 263 | | |
273 | 264 | | |
274 | 265 | | |
| |||
0 commit comments