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

Commit e537898

Browse files
committed
Add error handling
1 parent 115c168 commit e537898

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internals/cli/masker/stream.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ func (s *stream) flush(n int) error {
8080
}
8181

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

8588
delete(s.matches, i)
8689
}

0 commit comments

Comments
 (0)