Go format the modified source codes...

This commit is contained in:
Henry Hu
2016-02-03 12:07:46 +08:00
parent ffd221f58c
commit 2b47fec26b
2 changed files with 3 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ func (p *Parser) Parse(dataFormat string, out []byte, acc telegraf.Accumulator)
var metric telegraf.Metric
switch dataFormat {
case "","json":
case "", "json":
var jsonOut interface{}
err = json.Unmarshal(out, &jsonOut)
if err != nil {