src: refactor SSLError case statement · nodejs/node@7cf484c · GitHub
Skip to content

Commit 7cf484c

Browse files
sam-githubaddaleax
authored andcommitted
src: refactor SSLError case statement
- Don't use both break and return simultaneously. - Use case:/UNREACHABLE() to enforce that all cases are handled, instead of CHECK(). Backport-PR-URL: #25968 PR-URL: #25861 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 0b4055e commit 7cf484c

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/tls_wrap.cc

Lines changed: 10 additions & 6 deletions

0 commit comments

Comments
 (0)