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() void Check()
{ {
#ifdef DEBUG_ADDRMAN #ifdef DEBUG_ADDRMAN
{ LOCK(cs);
LOCK(cs); const int err = Check_();
int err; if (err) {
if ((err=Check_())) LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
LogPrintf("ADDRMAN CONSISTENCY CHECK FAILED!!! err=%i\n", err);
} }
#endif #endif
} }