Skip to content

Commit

Permalink
fix(writer/standard): eliminate 2nd call to Close (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckeyeCoder authored Dec 15, 2021
1 parent 3b029fa commit dd74daa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions writer/standard/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ const (
)

func (w Writer) Write(mat matrix.Matrix) error {
defer func() {
_ = w.Close()
}()

return drawTo(w.closer, mat, w.option)
}

Expand Down

0 comments on commit dd74daa

Please sign in to comment.