Skip to content

Commit ad24f2c

Browse files
committed
Add braces to avoid dangling 'else'
1 parent 224b581 commit ad24f2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

trantor/net/inner/TcpConnectionImpl.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,15 @@ void TcpConnectionImpl::handleError()
255255
if (err == 0)
256256
return;
257257
if (err == EPIPE || err == ECONNRESET || err == 104)
258+
{
258259
LOG_DEBUG << "[" << _name << "] - SO_ERROR = " << err << " "
259260
<< strerror_tl(err);
261+
}
260262
else
263+
{
261264
LOG_ERROR << "[" << _name << "] - SO_ERROR = " << err << " "
262265
<< strerror_tl(err);
266+
}
263267
}
264268
void TcpConnectionImpl::setTcpNoDelay(bool on)
265269
{

0 commit comments

Comments
 (0)