diff --git a/src/ast/identifier_expression.cc b/src/ast/identifier_expression.cc index 7adb6bc972..d14d5f454b 100644 --- a/src/ast/identifier_expression.cc +++ b/src/ast/identifier_expression.cc @@ -36,7 +36,7 @@ IdentifierExpression::IdentifierExpression(IdentifierExpression&&) = default; IdentifierExpression::~IdentifierExpression() = default; std::string IdentifierExpression::path() const { - if (segments_.empty() || segments_.size() < 2) { + if (segments_.size() < 2) { return ""; }