refactor: Fix CAddrMan::Check style

This change improves readability, and follows Developer Notes.
This commit is contained in:
Hennadii Stepanov 2021-05-23 19:23:28 +03:00
parent 06703973c7
commit f77d9c79aa
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -716,11 +716,10 @@ private:
void Check()
{
#ifdef DEBUG_ADDRMAN
{
LOCK(cs);
int err;
if ((err=Check_()))
LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
LOCK(cs);
const int err = Check_();
if (err) {
LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
}
#endif
}