Skip to content

Commit

Permalink
refactor: Fix CAddrMan::Check style
Browse files Browse the repository at this point in the history
This change improves readability, and follows Developer Notes.
  • Loading branch information
hebasto committed Jun 14, 2021
1 parent 0670397 commit f77d9c7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/addrman.h
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,10 @@ class CAddrMan
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
}
Expand Down

0 comments on commit f77d9c7

Please sign in to comment.