mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-10 13:45:49 +08:00
Changed conditional to match coding standard #4650
This commit is contained in:
@@ -272,7 +272,12 @@ SecureSocket::secureAccept(int socket)
|
||||
ARCH->sleep(1);
|
||||
}
|
||||
|
||||
m_secureReady = (0 == retry) ? true : false;
|
||||
if (retry == 0) {
|
||||
m_secureReady = true;
|
||||
}
|
||||
else {
|
||||
m_secureReady = false;
|
||||
}
|
||||
|
||||
if (m_secureReady) {
|
||||
LOG((CLOG_INFO "accepted secure socket"));
|
||||
@@ -303,7 +308,12 @@ SecureSocket::secureConnect(int socket)
|
||||
return false;
|
||||
}
|
||||
|
||||
m_secureReady = (0 == retry) ? true : false;
|
||||
if (retry == 0) {
|
||||
m_secureReady = true;
|
||||
}
|
||||
else {
|
||||
m_secureReady = false;
|
||||
}
|
||||
|
||||
if (m_secureReady) {
|
||||
if (verifyCertFingerprint()) {
|
||||
|
||||
Reference in New Issue
Block a user