Flatten the condition to get rid of empty branch

This commit is contained in:
Michał Janiszewski
2018-10-29 17:05:31 +01:00
committed by GitHub
parent d63ed30966
commit 719f187fde

View File

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