commit 7b461c9d529526521fc9b28191606e09fc62010d from: Aleksey Ryndin date: Fri Apr 19 09:33:50 2024 UTC Del: unnecessary condition commit - 9600075e083ffbff5ca058e9d964fb3657886903 commit + 7b461c9d529526521fc9b28191606e09fc62010d blob - 1613888c91fe30377592b8946311aade8145c9ce blob + 1f2d24834571a516c40c27cc8314984a1332dc16 --- vostok/vostok.cc +++ vostok/vostok.cc @@ -80,11 +80,8 @@ bool send_response(NotNull ctx, gemini:: return false; if (!transport::send(ctx, gemini::SPACE)) return false; - if (!meta.empty()) - { - if (!transport::send(ctx, meta)) - return false; - } + if (!transport::send(ctx, meta)) + return false; if (!transport::send(ctx, gemini::CRLF)) return false; return true;