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:
Brown 2019-11-26 12:32:07 -05:00
parent 842b2a53df
commit 7ccd73b5e3

View File

@ -2194,6 +2194,7 @@ class AssertionReconciler extends \Psalm\Type\Reconciler
if (!$has_cloned_type) {
$new_type = clone $new_type;
$has_cloned_type = true;
}
$has_local_match = true;
@ -2272,6 +2273,7 @@ class AssertionReconciler extends \Psalm\Type\Reconciler
) {
if (!$has_cloned_type) {
$new_type = clone $new_type;
$has_cloned_type = true;
}
$new_type->removeType($key);