aboutsummaryrefslogtreecommitdiffstats
path: root/les/distributor_test.go
diff options
context:
space:
mode:
authorGagziW <leon.stanko@rwth-aachen.de>2018-05-03 16:35:06 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-03 16:35:06 +0800
commit7c02933275d8f67fbdf78cdc05c0e09af4ebc657 (patch)
tree0f22379f2b9cb4d2c8731c570409c2b191a1603d /les/distributor_test.go
parentf2447bd4c35573d40e2ef678809657c5a1d4e999 (diff)
downloaddexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.gz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.bz2
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.lz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.xz
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.tar.zst
dexon-7c02933275d8f67fbdf78cdc05c0e09af4ebc657.zip
les: changed if-else blocks to conform with golint (#16658)
Diffstat (limited to 'les/distributor_test.go')
-rw-r--r--les/distributor_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/les/distributor_test.go b/les/distributor_test.go
index 55defb69b..2891bcab4 100644
--- a/les/distributor_test.go
+++ b/les/distributor_test.go
@@ -97,9 +97,8 @@ func (p *testDistPeer) waitBefore(cost uint64) (time.Duration, float64) {
p.lock.RUnlock()
if sumCost < testDistBufLimit {
return 0, float64(testDistBufLimit-sumCost) / float64(testDistBufLimit)
- } else {
- return time.Duration(sumCost - testDistBufLimit), 0
}
+ return time.Duration(sumCost - testDistBufLimit), 0
}
func (p *testDistPeer) canQueue() bool {