mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🎨🐎 simplification of log of last commit
This commit is contained in:
parent
67183d88eb
commit
613123ba64
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ BankResponse Bank::PruneUsers(time_t threshold_time, uint32_t threshold_bal) noe
|
||||||
if (users.erase_if(u.first, [threshold_time, threshold_bal, &deleted_count](User &u) -> bool
|
if (users.erase_if(u.first, [threshold_time, threshold_bal, &deleted_count](User &u) -> bool
|
||||||
{
|
{
|
||||||
#if MAX_LOG_SIZE > 0
|
#if MAX_LOG_SIZE > 0
|
||||||
return ((u.log.data.size() ? (u.log.data.back().time < threshold_time) : true) && u.balance < threshold_bal);
|
return ((!u.log.data.size() || u.log.data.back().time < threshold_time) && u.balance < threshold_bal);
|
||||||
#else
|
#else
|
||||||
return (u.balance < threshold_bal);
|
return (u.balance < threshold_bal);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue