Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Marton6 committed Jul 22, 2020
1 parent 115c168 commit e537898
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internals/cli/masker/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ func (s *stream) flush(n int) error {
}

// Drop all bytes until the end of the mask.
_, _ = s.buf.writeUpToIndex(ioutil.Discard, i+int64(length))
_, err = s.buf.writeUpToIndex(ioutil.Discard, i+int64(length))
if err != nil {
return err
}

delete(s.matches, i)
}
Expand Down

0 comments on commit e537898

Please sign in to comment.