🐛 I made a 0iq mistake

This commit is contained in:
EntireTwix 2021-07-10 21:49:24 -07:00
parent 8a6f9f2fce
commit 8c97d19330

View file

@ -172,7 +172,7 @@ BankResponse Bank::SetBal(const std::string &name, uint32_t amount) noexcept
save_flag = true;
#endif
#endif
return {k200OK, "true"}; //may return new balance
return {k204NoContent, std::nullopt}; //may return new balance
}
else
{
@ -194,7 +194,7 @@ BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
save_flag = true;
#endif
#endif
return {k200OK, "true"}; //may return new balance
return {k204NoContent, std::nullopt}; //may return new balance
}
else
{
@ -269,8 +269,6 @@ const char *Bank::Save()
if (GetChangeState())
{
#endif
return " to disk...\n";
static thread_local Json::Value temp;
//loading info into json temp
@ -300,6 +298,7 @@ const char *Bank::Save()
#else
save_flag = true;
#endif
return " to disk...\n";
}
else
{