added brace wrapping after if and for
This commit is contained in:
@@ -32,7 +32,8 @@ void runAfter(boost::asio::io_service &ioService, Duration duration,
|
||||
timer->expires_from_now(duration);
|
||||
|
||||
timer->async_wait([timer, cb](const boost::system::error_code &ec) {
|
||||
if (ec) {
|
||||
if (ec)
|
||||
{
|
||||
log("Error in runAfter: {}", ec.message());
|
||||
return;
|
||||
}
|
||||
@@ -49,7 +50,8 @@ void runAfter(std::shared_ptr<boost::asio::steady_timer> timer,
|
||||
timer->expires_from_now(duration);
|
||||
|
||||
timer->async_wait([timer, cb](const boost::system::error_code &ec) {
|
||||
if (ec) {
|
||||
if (ec)
|
||||
{
|
||||
log("Error in runAfter: {}", ec.message());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user