Skip to content

Commit

Permalink
fixup! #78 Fix raise error for not a html
Browse files Browse the repository at this point in the history
  • Loading branch information
meian committed Jul 26, 2024
1 parent 0f43e16 commit 453358e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io/read_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ func WithReadAction(r io.Reader, f func(io.Reader) error) (io.Reader, error) {
if err := f(tee); err != nil {
return nil, err
}
io.Copy(io.Discard, tee)
if _, err := io.Copy(io.Discard, tee); err != nil {
return nil, err
}
return &buf, nil
}

0 comments on commit 453358e

Please sign in to comment.