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

This commit is contained in:
Michał Janiszewski authored and Mason Sciotti committed 2018-11-06 14:48:59 -08:00
1 parent d63ed30966
commit ac2d064cb0
1 file changed
+1 -5
+1 -5
View File
@@ -26,13 +26,9 @@ void RpcConnection::Open()
return; return;
} }
if (state == State::Disconnected) { if (state == State::Disconnected && !connection->Open()) {
if (connection->Open()) {
}
else {
return; return;
} }
}
if (state == State::SentHandshake) { if (state == State::SentHandshake) {
JsonDocument message; JsonDocument message;