aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-25 03:31:59 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-27 01:33:42 +0800
commitff756bc94d7129844f8f3492cc07807a78b973bc (patch)
treea2418dea3d2e5da316321bc93fb6af05b71b0667 /test/contracts
parentd2144b03c7ef6f7189ba289f5df1a445c68f3b68 (diff)
downloaddexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.tar.gz
dexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.tar.zst
dexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.zip
Make tests more consistent in style
Diffstat (limited to 'test/contracts')
-rw-r--r--test/contracts/AuctionRegistrar.cpp8
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;