Flatten the condition to get rid of empty branch (#247)

This commit is contained in:
Michał Janiszewski 2018-11-06 23:48:59 +01:00 committed by Mason Sciotti
parent d63ed30966
commit ac2d064cb0

View file

@ -26,12 +26,8 @@ void RpcConnection::Open()
return;
}
if (state == State::Disconnected) {
if (connection->Open()) {
}
else {
return;
}
if (state == State::Disconnected && !connection->Open()) {
return;
}
if (state == State::SentHandshake) {