EmptyWriteIgnorer handles 0 byte write in LZ4 package to stop pipe reader/writer from blocking.
| 8 | // EmptyWriteIgnorer handles 0 byte write in LZ4 package |
| 9 | // to stop pipe reader/writer from blocking. |
| 10 | type EmptyWriteIgnorer struct { |
| 11 | io.Writer |
| 12 | } |
| 13 | |
| 14 | func (e EmptyWriteIgnorer) Write(p []byte) (int, error) { |
| 15 | if len(p) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected