diff --git a/include/tl/optional.hpp b/include/tl/optional.hpp index 5308231..b7b3d61 100644 --- a/include/tl/optional.hpp +++ b/include/tl/optional.hpp @@ -1182,7 +1182,7 @@ public: } } - if (rhs.has_value()) { + else if (rhs.has_value()) { this->construct(*rhs); } @@ -1204,7 +1204,7 @@ public: } } - if (rhs.has_value()) { + else if (rhs.has_value()) { this->construct(std::move(*rhs)); }