lntest: fix colliding variable name

The variable name "bytes" collides with an imported package name, so we
rename it to avoid shadowing.
This commit is contained in:
Oliver Gugger 2022-01-06 12:50:33 +01:00
parent 61bffa70f9
commit 5afe7852b5
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -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.