Skip to content

Commit f12e1c0

Browse files
committed
Small fix
1 parent 43ffedb commit f12e1c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mtconnect/sink/rest_sink/server.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ namespace mtconnect::sink::rest_sink {
158158
/// @return `true` if the request was matched and dispatched
159159
bool dispatch(SessionPtr session, RequestPtr request)
160160
{
161+
auto success = false;
161162
try
162163
{
163-
auto success = false;
164164
std::string message;
165165
if (request->m_command)
166166
{
@@ -224,7 +224,7 @@ namespace mtconnect::sink::rest_sink {
224224
session->fail(boost::beast::http::status::not_found, txt.str());
225225
}
226226

227-
return false;
227+
return success;
228228
}
229229

230230
/// @brief accept a connection from a client

0 commit comments

Comments
 (0)