Add missing return statements to examples

This commit is contained in:
DockedFerret800
2025-07-24 13:01:26 +01:00
committed by Mohammad Nejati
parent 1fc5512b92
commit a7bf3760a5
5 changed files with 5 additions and 5 deletions

View File

@@ -290,7 +290,7 @@ private:
return;
if(ec)
fail(ec, "read");
return fail(ec, "read");
// Echo the message
ws_.text(ws_.got_text());

View File

@@ -151,7 +151,7 @@ public:
return;
if(ec)
fail(ec, "read");
return fail(ec, "read");
// Echo the message
ws_.text(ws_.got_text());

View File

@@ -210,7 +210,7 @@ public:
return;
if(ec)
fail(ec, "read");
return fail(ec, "read");
// Echo the message
ws_.text(ws_.got_text());

View File

@@ -146,7 +146,7 @@ public:
return;
}
if(ec)
fail(ec, "read");
return fail(ec, "read");
// Echo the message
ws_.text(ws_.got_text());

View File

@@ -123,7 +123,7 @@ public:
return;
}
if(ec)
fail(ec, "read");
return fail(ec, "read");
// Echo the message
ws_.text(ws_.got_text());