Commit 1988832
authored
fix(deploy): remove unreachable null-signer guard in resolveSignerSetup (#110)
* fix(deploy): remove unreachable null-signer guard in resolveSignerSetup
The throw at signerMode.ts:142-149 could never fire: shouldResolveUserSigner()
returns true whenever publishToPlayground is true, so resolveSigner() in the
preflight has already either produced a ResolvedSigner or rethrown before
resolveSignerSetup is called. Replace the dead branch with a non-null assertion
and a comment explaining the invariant so the next refactor doesn't silently
reintroduce it.
Closes #104.
* chore: add changeset for dead-signer-guard fix
* test(deploy): remove test for unreachable null-signer path in resolveSignerSetup1 parent 62a3451 commit 1988832
3 files changed
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 26 | | |
37 | 27 | | |
38 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments