Remove unused variable

My first failing Unit Test caused by an unused variable
This commit is contained in:
PhoenixWhitefire 2024-08-11 16:22:17 +05:30 committed by GitHub
parent 83b2f7b29f
commit cde9fb0f0e
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -2657,9 +2657,7 @@ private:
// Don't give the suggestion in this case, we don't want to slow people's code down. // Don't give the suggestion in this case, we don't want to slow people's code down.
if (!errmsg->is<AstExprConstantString>()) if (!errmsg->is<AstExprConstantString>())
return true; return true;
AstExprConstantString* string = errmsg->as<AstExprConstantString>();
emitWarning( emitWarning(
*context, *context,
LintWarning::Code_CollapseClauseToAssert, LintWarning::Code_CollapseClauseToAssert,