tools/loggraphdiff: Fix vet warnings
This commit is contained in:
parent
275a44f552
commit
aafa3ced07
|
@ -49,11 +49,11 @@ func main() {
|
||||||
|
|
||||||
old, err := readGraph(os.Args[1])
|
old, err := readGraph(os.Args[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("failed to read %s: %s", os.Args[1], err)
|
log.Fatalf("failed to read %s: %s", os.Args[1], err)
|
||||||
}
|
}
|
||||||
new, err := readGraph(os.Args[2])
|
new, err := readGraph(os.Args[2])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("failed to read %s: %s", os.Args[1], err)
|
log.Fatalf("failed to read %s: %s", os.Args[1], err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var nodes []string
|
var nodes []string
|
||||||
|
@ -84,7 +84,7 @@ func main() {
|
||||||
})
|
})
|
||||||
|
|
||||||
fmt.Println("digraph G {")
|
fmt.Println("digraph G {")
|
||||||
fmt.Println(" rankdir = \"BT\";\n")
|
fmt.Print(" rankdir = \"BT\";\n\n")
|
||||||
for _, n := range nodes {
|
for _, n := range nodes {
|
||||||
var attrs string
|
var attrs string
|
||||||
_, inOld := old.nodes[n]
|
_, inOld := old.nodes[n]
|
||||||
|
|
Loading…
Reference in New Issue