1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Remove unnecessary assertion

This commit is contained in:
Brown 2019-09-19 15:41:44 -04:00
parent e6f90ab83f
commit f6b0de08f8

View File

@ -195,7 +195,6 @@ class AssertionFinder
throw new \UnexpectedValueException('$count_equality_position value'); throw new \UnexpectedValueException('$count_equality_position value');
} }
if ($counted_expr->args) {
/** @var PhpParser\Node\Expr\FuncCall $counted_expr */ /** @var PhpParser\Node\Expr\FuncCall $counted_expr */
$var_name = ExpressionAnalyzer::getArrayVarId( $var_name = ExpressionAnalyzer::getArrayVarId(
$counted_expr->args[0]->value, $counted_expr->args[0]->value,
@ -210,7 +209,6 @@ class AssertionFinder
$if_types[$var_name] = [['=non-empty-countable']]; $if_types[$var_name] = [['=non-empty-countable']];
} }
} }
}
$conditional->assertions = $if_types; $conditional->assertions = $if_types;
return; return;