mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Avoid using var if not required
This commit is contained in:
parent
bf10cd6c95
commit
6eaf17db38
@ -289,7 +289,7 @@ activate themselves.
|
||||
|
||||
/// Withdraw a bid that was overbid.
|
||||
function withdraw() returns (bool) {
|
||||
var amount = pendingReturns[msg.sender];
|
||||
uint amount = pendingReturns[msg.sender];
|
||||
if (amount > 0) {
|
||||
// It is important to set this to zero because the recipient
|
||||
// can call this function again as part of the receiving call
|
||||
@ -492,7 +492,7 @@ high or low invalid bids.
|
||||
|
||||
/// Withdraw a bid that was overbid.
|
||||
function withdraw() returns (bool) {
|
||||
var amount = pendingReturns[msg.sender];
|
||||
uint amount = pendingReturns[msg.sender];
|
||||
if (amount > 0) {
|
||||
// It is important to set this to zero because the recipient
|
||||
// can call this function again as part of the receiving call
|
||||
|
Loading…
Reference in New Issue
Block a user