core/commands: Fixed net diag command not outputting in chosen format
Matt Bell committed
Jan 24, 2015 at 16:27 UTC
2c019b542e46fb3bb255adb3afda8483f183650c
1 file changed
+2
core/commands/diag.go
+2
@@ -106,6 +106,7 @@ connected peers and latencies between them.
106
switch vis {
107
case visD3:
108
res.SetOutput(bytes.NewReader(diag.GetGraphJson(info)))
109
+ return
110
case visDot:
111
var buf bytes.Buffer
112
w := diag.DotWriter{W: &buf}
@@ -115,6 +116,7 @@ connected peers and latencies between them.
116
return
117
}
118
res.SetOutput(io.Reader(&buf))
119
+ return
120
}
121
122
output, err := stdDiagOutputMarshal(standardDiagOutput(info))