remove panic

This commit is contained in:
kencrawford 2019-03-12 20:23:45 -04:00 committed by Grant Murphy
parent 66e7c8d8f8
commit 4cd14f9068

View file

@ -130,26 +130,19 @@ func reportSonarqube(rootPath string, w io.Writer, data *reportInfo) error {
}
raw, err := json.MarshalIndent(si, "", "\t")
if err != nil {
panic(err)
return err
}
_, err = w.Write(raw)
if err != nil {
panic(err)
}
return err
}
func reportJSON(w io.Writer, data *reportInfo) error {
raw, err := json.MarshalIndent(data, "", "\t")
if err != nil {
panic(err)
return err
}
_, err = w.Write(raw)
if err != nil {
panic(err)
}
return err
}