🐛 massive bug

This commit is contained in:
William Katz 2021-06-30 16:53:23 -07:00 committed by GitHub
parent 48117b1834
commit f62465419e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
return ErrorResponse::InvalidRequest; return ErrorResponse::InvalidRequest;
} }
//as first modify_if checks a_name and grabs unique lock //as first modify_if checks a_name and grabs unique lock
if (!Contains(b_name)) if (Contains(b_name) != true)
{ {
return ErrorResponse::UserNotFound; return ErrorResponse::UserNotFound;
} }
@ -92,7 +92,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
} }
else if (a.password != XXH3_64bits(attempt.data(), attempt.size())) else if (a.password != XXH3_64bits(attempt.data(), attempt.size()))
{ {
state = ErrorResponse::WrongPassword; state = ErrorResponse::WrongPassword;
} }
else else