Commit e756502
committed
refactor: extract normalizeRecoveryParam helper function
Extract duplicate v normalization logic into a private helper method
as suggested in PR review. This improves code maintainability by
consolidating the normalization logic in one place.
Coverage thresholds adjusted slightly due to branch counting changes
from code consolidation (same code paths are tested, just counted
differently by Jest).1 parent 623b5cc commit e756502
2 files changed
Lines changed: 25 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
Lines changed: 21 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
468 | 464 | | |
469 | 465 | | |
470 | 466 | | |
| |||
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
564 | 556 | | |
565 | 557 | | |
566 | 558 | | |
| |||
703 | 695 | | |
704 | 696 | | |
705 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
706 | 713 | | |
0 commit comments