diff options
author | chriseth <chris@ethereum.org> | 2016-09-01 04:34:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 04:34:44 +0800 |
commit | 18abafe029a2eb4628136f7a944c80265da3ece4 (patch) | |
tree | 010c8a38e9541bf0d0bf5a3e29ae046931267402 /test/contracts/AuctionRegistrar.cpp | |
parent | 58dbd162ab369e9dd69af0b2a45a386527ed7b58 (diff) | |
parent | a8c5d2bbde73e13dc2fc2e002bab0bd39536f162 (diff) | |
download | dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.gz dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.bz2 dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.lz dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.xz dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.zst dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.zip |
Merge pull request #960 from Denton-L/change-else-style
Change else style
Diffstat (limited to 'test/contracts/AuctionRegistrar.cpp')
-rw-r--r-- | test/contracts/AuctionRegistrar.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/contracts/AuctionRegistrar.cpp b/test/contracts/AuctionRegistrar.cpp index 3b1d1165..6eba2706 100644 --- a/test/contracts/AuctionRegistrar.cpp +++ b/test/contracts/AuctionRegistrar.cpp @@ -130,9 +130,7 @@ contract GlobalRegistrar is Registrar, AuctionSystem { if (previousOwner != 0) { if (!record.owner.send(auction.sumOfBids - auction.highestBid / 100)) throw; - } - else - { + } else { if (!auction.highestBidder.send(auction.highestBid - auction.secondHighestBid)) throw; } @@ -147,9 +145,7 @@ contract GlobalRegistrar is Registrar, AuctionSystem { if (now < m_toRecord[_name].renewalDate) throw; bid(_name, msg.sender, msg.value); - } - else - { + } else { Record record = m_toRecord[_name]; if (record.owner != 0) throw; |