From 569436706878cd453e3db4dc78a9c1063f2c8906 Mon Sep 17 00:00:00 2001 From: noot Date: Tue, 16 Mar 2021 18:15:42 -0400 Subject: [PATCH] fix style errors --- lib/blocktree/blocktree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blocktree/blocktree.go b/lib/blocktree/blocktree.go index 6587d73bd5..6e9547da35 100644 --- a/lib/blocktree/blocktree.go +++ b/lib/blocktree/blocktree.go @@ -230,7 +230,7 @@ func (bt *BlockTree) longestPath() []*node { //nolint } // subChain returns the path from the node with Hash start to the node with Hash end -func (bt *BlockTree) subChain(start Hash, end Hash) ([]*node, error) { +func (bt *BlockTree) subChain(start, end Hash) ([]*node, error) { sn := bt.getNode(start) if sn == nil { return nil, ErrStartNodeNotFound @@ -243,7 +243,7 @@ func (bt *BlockTree) subChain(start Hash, end Hash) ([]*node, error) { } // SubBlockchain returns the path from the node with Hash start to the node with Hash end -func (bt *BlockTree) SubBlockchain(start Hash, end Hash) ([]Hash, error) { +func (bt *BlockTree) SubBlockchain(start, end Hash) ([]Hash, error) { bt.RLock() defer bt.RUnlock()