mirror of
https://github.com/square/okhttp.git
synced 2026-01-18 20:40:58 +03:00
Empty sinks must still honor the contract by consuming the bytes.
This commit is contained in:
@@ -812,7 +812,7 @@ public final class DiskLruCache implements Closeable {
|
||||
|
||||
private static final Sink NULL_SINK = new Sink() {
|
||||
@Override public void write(Buffer source, long byteCount) throws IOException {
|
||||
// Eat all writes silently. Nom nom.
|
||||
source.skip(byteCount);
|
||||
}
|
||||
|
||||
@Override public void flush() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user