aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFurkan KAMACI <furkankamaci@gmail.com>2018-01-03 20:14:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-03 20:14:47 +0800
commitb8caba97099ee5eed33c3b80dd4ea540722e7d8f (patch)
tree36c3661d083d81bc52676ff9a030f6e02c91b29c /eth
parent9d48dbf5c2d0401042134d94997be1850bf8499b (diff)
downloadgo-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.gz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.bz2
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.lz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.xz
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.tar.zst
go-tangerine-b8caba97099ee5eed33c3b80dd4ea540722e7d8f.zip
various: remove redundant parentheses (#15793)
Diffstat (limited to 'eth')
-rw-r--r--eth/handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 31c311687..074cffd96 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -394,14 +394,14 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
case query.Reverse:
// Number based traversal towards the genesis block
if query.Origin.Number >= query.Skip+1 {
- query.Origin.Number -= (query.Skip + 1)
+ query.Origin.Number -= query.Skip + 1
} else {
unknown = true
}
case !query.Reverse:
// Number based traversal towards the leaf block
- query.Origin.Number += (query.Skip + 1)
+ query.Origin.Number += query.Skip + 1
}
}
return p.SendBlockHeaders(headers)