diff --git a/src/cgi.cpp b/src/cgi.cpp index 255e096..da1c136 100644 --- a/src/cgi.cpp +++ b/src/cgi.cpp @@ -200,11 +200,7 @@ string text2html(string text) bool captcha_valid(std::uint8_t id, const string_view answer) { std::array answers{"2", "6", "17", "12", "4", "1"}; - if (answers.at(id) == answer) - { - return true; - } - return false; + return answers.at(id) == answer; } bool is_spam(const entry_type &entry)