Commit 5ec2050
committed
chore(Connection): Fix warning due to non-void function not returning
In release builds, the assert is omitted and the function shows undefined
behavior due to not returning.
We now return nullptr to avoid UB; in general we expect developers to build
in non-release mode, and to encounter the assert when code wrongly dispatches
to this function.1 parent 039c7d0 commit 5ec2050
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
0 commit comments