Skip to content

Commit cfcd571

Browse files
codebytereBethGriggs
authored andcommittedSep 21, 2021
src: fix -Wunreachable-code-return error
PR-URL: #40034 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 6d399e1 commit cfcd571

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎src/inspector_agent.cc

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ inline void* StartIoThreadMain(void* unused) {
8787
if (agent != nullptr)
8888
agent->RequestIoThreadStart();
8989
}
90-
return nullptr;
9190
}
9291

9392
static int StartDebugSignalHandler() {

‎src/node_url.cc

-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ std::string URLHost::ToString() const {
600600
case HostType::H_DOMAIN:
601601
case HostType::H_OPAQUE:
602602
return value_.domain_or_opaque;
603-
break;
604603
case HostType::H_IPV4: {
605604
dest.reserve(15);
606605
uint32_t value = value_.ipv4;

0 commit comments

Comments
 (0)
Please sign in to comment.