graph/encoding/dot: run go fmt -s

This commit is contained in:
Dan Kortschak
2018-12-12 13:53:21 +10:30
parent bf83f2c3b8
commit c64a0a7fc7
2 changed files with 2 additions and 3 deletions

View File

@@ -312,12 +312,12 @@ func TestMultigraphDecoding(t *testing.T) {
}, },
{ {
directed: true, directed: true,
input: directedSelfLoopMultigraph, input: directedSelfLoopMultigraph,
expected: directedSelfLoopMultigraph, expected: directedSelfLoopMultigraph,
}, },
{ {
directed: false, directed: false,
input: undirectedSelfLoopMultigraph, input: undirectedSelfLoopMultigraph,
expected: undirectedSelfLoopMultigraph, expected: undirectedSelfLoopMultigraph,
}, },
} { } {

View File

@@ -140,7 +140,6 @@ type edge struct {
from, to int64 from, to int64
} }
func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSubgraph bool) error { func (p *simpleGraphPrinter) print(g graph.Graph, name string, needsIndent, isSubgraph bool) error {
if name == "" { if name == "" {
if g, ok := g.(Graph); ok { if g, ok := g.(Graph); ok {