From 90d4299f0b364a92ba8666158d0ead07fec95b92 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 6 Nov 2019 16:09:45 +0300 Subject: [PATCH] core: gofmt blockchain.go --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 59b82cca2..d33ee264a 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -266,7 +266,7 @@ func (bc *Blockchain) AddHeaders(headers ...*Header) (err error) { } if oldlen != headerList.Len() { - updateHeaderHeightMetric(headerList.Len()-1) + updateHeaderHeightMetric(headerList.Len() - 1) if err = bc.store.PutBatch(batch); err != nil { return }