[ast] Avoid useless empty check

Change-Id: I7c12b78dc06e13becc45c3df7c23929d1fa6a86c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20000
Reviewed-by: dan sinclair <dsinclair@google.com>
This commit is contained in:
David Neto 2020-04-20 18:36:29 +00:00
parent 3df2044e36
commit 53b5730dfc
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ IdentifierExpression::IdentifierExpression(IdentifierExpression&&) = default;
IdentifierExpression::~IdentifierExpression() = default; IdentifierExpression::~IdentifierExpression() = default;
std::string IdentifierExpression::path() const { std::string IdentifierExpression::path() const {
if (segments_.empty() || segments_.size() < 2) { if (segments_.size() < 2) {
return ""; return "";
} }