From 1bd8a235accab31ec20d8e9af0ab62edf13d931a Mon Sep 17 00:00:00 2001 From: enkogu Date: Thu, 8 Nov 2018 01:27:53 +0700 Subject: [PATCH] linter fixes --- contracts/ether/WeiSplitter.sol | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contracts/ether/WeiSplitter.sol b/contracts/ether/WeiSplitter.sol index 96c1575..371cd56 100644 --- a/contracts/ether/WeiSplitter.sol +++ b/contracts/ether/WeiSplitter.sol @@ -60,8 +60,9 @@ contract WeiSplitter is SplitterBase, IWeiReceiver { b.i = i; b.need = IWeiReceiver(children[b.i]).getTotalWeiNeeded(b.flow); b = _relativesStreak(b); - if(b.need==0) continue; - IWeiReceiver(children[i]).processFunds.value(b.need)(b.flow); + if(b.need!=0) { + IWeiReceiver(children[i]).processFunds.value(b.need)(b.flow); + } b = _modifyFlow(b); } require(this.balance == 0); @@ -88,7 +89,7 @@ contract WeiSplitter is SplitterBase, IWeiReceiver { b.needAcc = b.need; } - if((b.i+1)