Skip to content

Commit

Permalink
Fix gosec warn
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 12, 2020
1 parent 7030a51 commit ed2f3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion output/gviz/gviz.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ func (g *Gviz) renderSVG(wr io.Writer, b []byte) (e error) {
}
}

wr.Write([]byte(doc.OutputXML(false)))
if _, err := wr.Write([]byte(doc.OutputXML(false))); err != nil {
return err
}

return nil
}

0 comments on commit ed2f3f6

Please sign in to comment.