Skip to content

Commit

Permalink
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed May 26, 2015
1 parent 93ab652 commit d00305a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traverse/traverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func TestBFSSkip(t *testing.T) {
func testWalkOutputs(t *testing.T, root *mdag.Node, opts Options, expect []byte) {
expect = bytes.TrimLeft(expect, "\n")

var buf bytes.Buffer
buf := new(bytes.Buffer)
walk := func(current State) error {
s := fmt.Sprintf("%d %s\n", current.Depth, current.Node.Data)
t.Logf("walk: %s", s)
Expand Down

0 comments on commit d00305a

Please sign in to comment.