mirror of
https://git.suyu.dev/suyu/discord-rpc.git
synced 2026-02-04 19:14:04 +00:00
Flatten the condition to get rid of empty branch (#247)
This commit is contained in:
parent
d63ed30966
commit
ac2d064cb0
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user