aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_sink.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/byte_sink.h')
-rw-r--r--src/byte_sink.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/byte_sink.h b/src/byte_sink.h
index c3d5045a..71d525ce 100644
--- a/src/byte_sink.h
+++ b/src/byte_sink.h
@@ -70,7 +70,9 @@ serd_byte_sink_write(const void* buf, size_t len, SerdByteSink* bsink)
{
if (len == 0) {
return 0;
- } else if (bsink->block_size == 1) {
+ }
+
+ if (bsink->block_size == 1) {
return bsink->sink(buf, len, bsink->stream);
}