From 8a93d0b3be5b6d80a1bef85bc73b2661f5ab4376 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 31 Dec 2020 12:37:57 +0100 Subject: Avoid "else" after "break" and "return" --- src/byte_sink.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/byte_sink.h') 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); } -- cgit v1.2.1