BasicToken.sol: Remove useless check

The condition this commit removes is already implemented by the call to `safeSub`
This commit is contained in:
Esteban Ordano
2017-02-07 19:45:32 -05:00
committed by GitHub
parent ced4e2da3f
commit 70fbc7fe27

View File

@ -14,9 +14,6 @@ contract BasicToken is ERC20Basic, SafeMath {
mapping(address => uint) balances;
function transfer(address _to, uint _value) {
if (balances[msg.sender] < _value) {
throw;
}
balances[msg.sender] = safeSub(balances[msg.sender], _value);
balances[_to] = safeAdd(balances[_to], _value);
Transfer(msg.sender, _to, _value);