Commit bef02ab
crypto: simplify state failure handling
It is more intuitive to return true/false instead of undefined/false
and also simplifies handling in the JS layer.
PR-URL: #22131
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>1 parent 3839ff0 commit bef02ab
2 files changed
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 203 | + | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
| |||
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
219 | | - | |
| 216 | + | |
220 | 217 | | |
221 | 218 | | |
222 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2926 | 2926 | | |
2927 | 2927 | | |
2928 | 2928 | | |
| 2929 | + | |
| 2930 | + | |
2929 | 2931 | | |
2930 | 2932 | | |
2931 | 2933 | | |
| |||
2980 | 2982 | | |
2981 | 2983 | | |
2982 | 2984 | | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2986 | 2988 | | |
2987 | 2989 | | |
2988 | 2990 | | |
| |||
3094 | 3096 | | |
3095 | 3097 | | |
3096 | 3098 | | |
3097 | | - | |
3098 | | - | |
| 3099 | + | |
| 3100 | + | |
3099 | 3101 | | |
3100 | 3102 | | |
3101 | 3103 | | |
| |||
0 commit comments