🐎 avoiding one branch

This commit is contained in:
EntireTwix 2021-04-21 19:25:47 -07:00
parent 3965cc0ce3
commit 8634c99785

View file

@ -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
}
}
}