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:
parent
842b2a53df
commit
7ccd73b5e3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user