From 5afe7852b5e4889fc15b059be4336f01d0f28a1c Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 6 Jan 2022 12:50:33 +0100 Subject: [PATCH] lntest: fix colliding variable name The variable name "bytes" collides with an imported package name, so we rename it to avoid shadowing. --- lntest/harness_node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lntest/harness_node.go b/lntest/harness_node.go index add14a85c..fe08f4f0e 100644 --- a/lntest/harness_node.go +++ b/lntest/harness_node.go @@ -511,12 +511,12 @@ func (hn *HarnessNode) String() string { nodeState.ClosedChans[outpoint.String()] = count } - bytes, err := json.MarshalIndent(nodeState, "", "\t") + stateBytes, err := json.MarshalIndent(nodeState, "", "\t") if err != nil { return fmt.Sprintf("\n encode node state with err: %v", err) } - return fmt.Sprintf("\nnode state: %s", bytes) + return fmt.Sprintf("\nnode state: %s", stateBytes) } // DBPath returns the filepath to the channeldb database file for this node.