Commit fd099cb
committed
Use
We use the `get_bootloader` function frequently and the value will never
change so just cache it
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>OnceLock to store the detected bootloader1 parent c29c97e commit fd099cb
2 files changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
409 | 415 | | |
410 | 416 | | |
411 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
412 | 420 | | |
413 | | - | |
414 | | - | |
415 | 421 | | |
416 | 422 | | |
417 | 423 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
| 424 | + | |
| 425 | + | |
422 | 426 | | |
423 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments