added brace wrapping after if and for

This commit is contained in:
fourtf
2018-10-21 13:43:02 +02:00
parent c6e1ec3c71
commit e259b9e39f
138 changed files with 4738 additions and 2237 deletions
+4 -2
View File
@@ -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;
}