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.