Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
enkogu committed Nov 7, 2018
1 parent 40027ee commit 1bd8a23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contracts/ether/WeiSplitter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -88,7 +89,7 @@ contract WeiSplitter is SplitterBase, IWeiReceiver {
b.needAcc = b.need;
}

if((b.i+1)<childrenCount){
if((b.i+1)<childrenCount) {
if((IWeiReceiver(children[b.i]).getReceiverType()==Type.Relative)
&&(IWeiReceiver(children[b.i+1]).getReceiverType()==Type.Relative)) {
b.relSeqQ = true;
Expand Down

0 comments on commit 1bd8a23

Please sign in to comment.