mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-22 18:03:40 +00:00
Flatten the condition to get rid of empty branch (#247)
This commit is contained in:
parent
d63ed30966
commit
ac2d064cb0
1 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue