diff --git a/api/str.hpp b/api/str.hpp index 50df6ad63..01611d6ba 100644 --- a/api/str.hpp +++ b/api/str.hpp @@ -480,11 +480,8 @@ namespace jule jule::Bool operator==(const jule::Str &str) const noexcept { - if (this->_len != str._len) - return false; - if (this->_len == 0) - return true; - return std::strncmp( + return this->_len == str._len && + std::strncmp( reinterpret_cast(this->begin()), reinterpret_cast(str.begin()), this->_len) == 0;