[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:
parent
3df2044e36
commit
53b5730dfc
|
@ -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 "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue