Changed conditional to match coding standard #4650

This commit is contained in:
Adam Potolsky 2015-05-20 14:14:30 -07:00
parent 81a70135bd
commit 1af9d58a9b
1 changed files with 12 additions and 2 deletions

View File

@ -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()) {