1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix redundant condition

This commit is contained in:
Matthew Brown 2019-08-17 18:02:38 -04:00
parent b6dc8f547e
commit 62dff200d5

View File

@ -397,10 +397,8 @@ class ConstFetchAnalyzer
$stmt->inferredType = Type::getMixed();
if ($stmt->class instanceof PhpParser\Node\Expr) {
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->class, $context) === false) {
return;
}
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->class, $context) === false) {
return false;
}
return null;