Commit d1e6599
committed
Remove redundant guards from fetch state matching
The guards 'when data.current_drive != nil' etc. on the simple atom
patterns ':driving', ':updating', ':charging' are unnecessary. The state
atom itself is the source of truth - if we're in ':driving', the
dual-write invariant guarantees current_drive is populated. The guards
added nothing over the atom pattern match.1 parent f228fbe commit d1e6599
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | | - | |
| 1537 | + | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | | - | |
| 1540 | + | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | | - | |
| 1543 | + | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
| |||
0 commit comments