Commit 01a55ee
committed
http2: remove unnecessary asserts in core
options.getTrailers & options.selectPadding will always be a
function by the time the code reaches the assert checks. And
even if not (which seems currently impossible), the assert
failure will be almost the same as calling something that is
not a function. The downside of leaving these is that typeof
checks are decently expensive.
PR-URL: #16327
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 023dc4b commit 01a55ee
1 file changed
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | 221 | | |
227 | | - | |
| 222 | + | |
228 | 223 | | |
229 | 224 | | |
230 | 225 | | |
| |||
382 | 377 | | |
383 | 378 | | |
384 | 379 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 380 | | |
389 | 381 | | |
390 | 382 | | |
| |||
0 commit comments