From e759508335af923293d531b39d1d9c3c9b792128 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 13 Aug 2020 10:10:26 -0500 Subject: [PATCH] Remove reduntant condition --- lib/programmemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/programmemory.cpp b/lib/programmemory.cpp index 9c7fd09c1..bb722d41d 100644 --- a/lib/programmemory.cpp +++ b/lib/programmemory.cpp @@ -545,7 +545,7 @@ void execute(const Token *expr, } else if (Token::Match(expr->tokAt(-3), "%var% . %name% (")) { const Token* containerTok = expr->tokAt(-3); - if (astIsContainer(containerTok) && containerTok->varId() > 0) { + if (astIsContainer(containerTok)) { Library::Container::Yield yield = containerTok->valueType()->container->getYield(expr->strAt(-1)); if (yield == Library::Container::Yield::SIZE) { if (!programMemory->getContainerSizeValue(containerTok->varId(), result))