mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-11-09 23:08:40 +00:00
Flatten the condition to get rid of empty branch (#247)
This commit is contained in:
parent
d63ed30966
commit
ac2d064cb0
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue