Commit d00305a4 authored by rht's avatar rht

Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'

parent 93ab652f
...@@ -317,7 +317,7 @@ func TestBFSSkip(t *testing.T) { ...@@ -317,7 +317,7 @@ func TestBFSSkip(t *testing.T) {
func testWalkOutputs(t *testing.T, root *mdag.Node, opts Options, expect []byte) { func testWalkOutputs(t *testing.T, root *mdag.Node, opts Options, expect []byte) {
expect = bytes.TrimLeft(expect, "\n") expect = bytes.TrimLeft(expect, "\n")
var buf bytes.Buffer buf := new(bytes.Buffer)
walk := func(current State) error { walk := func(current State) error {
s := fmt.Sprintf("%d %s\n", current.Depth, current.Node.Data) s := fmt.Sprintf("%d %s\n", current.Depth, current.Node.Data)
t.Logf("walk: %s", s) t.Logf("walk: %s", s)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment