From 53b5730dfcdd9a4edf08e4fd01cddccb0a29b267 Mon Sep 17 00:00:00 2001 From: David Neto Date: Mon, 20 Apr 2020 18:36:29 +0000 Subject: [PATCH] [ast] Avoid useless empty check Change-Id: I7c12b78dc06e13becc45c3df7c23929d1fa6a86c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20000 Reviewed-by: dan sinclair --- src/ast/identifier_expression.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; }