mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
🐎 avoiding one branch
This commit is contained in:
parent
3965cc0ce3
commit
8634c99785
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ public:
|
|||
users.modify_if(a_name, [amount](User &a) {
|
||||
a.balance += amount;
|
||||
});
|
||||
state = false; //because had to refund transaction
|
||||
return false; //because had to refund transaction
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue