From c64a0a7fc77c800bc460f7214f5953b2e55a7b51 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Wed, 12 Dec 2018 13:53:21 +1030 Subject: [PATCH] graph/encoding/dot: run go fmt -s --- graph/encoding/dot/decode_test.go | 4 ++-- graph/encoding/dot/encode.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/graph/encoding/dot/decode_test.go b/graph/encoding/dot/decode_test.go index 20fb557e..a1e28c5d 100644 --- a/graph/encoding/dot/decode_test.go +++ b/graph/encoding/dot/decode_test.go @@ -312,12 +312,12 @@ func TestMultigraphDecoding(t *testing.T) { }, { directed: true, - input: directedSelfLoopMultigraph, + input: directedSelfLoopMultigraph, expected: directedSelfLoopMultigraph, }, { directed: false, - input: undirectedSelfLoopMultigraph, + input: undirectedSelfLoopMultigraph, expected: undirectedSelfLoopMultigraph, }, } { diff --git a/graph/encoding/dot/encode.go b/graph/encoding/dot/encode.go index 7a919047..f4381f2d 100644 --- a/graph/encoding/dot/encode.go +++ b/graph/encoding/dot/encode.go @@ -140,7 +140,6 @@ type edge struct { from, to int64 } - func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSubgraph bool) error { if name == "" { if g, ok := g.(Graph); ok {