Skip to content
Permalink
Browse files

Fix redundant condition

  • Loading branch information
muglug committed Nov 26, 2019
1 parent 842b2a5 commit 7ccd73b5e36b6f3d6d3790c9b7116a3bb724d26e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Psalm/Internal/Type/AssertionReconciler.php
@@ -2194,6 +2194,7 @@ private static function filterTypeWithAnother(
if (!$has_cloned_type) {
$new_type = clone $new_type;
$has_cloned_type = true;
}
$has_local_match = true;
@@ -2272,6 +2273,7 @@ function ($extra_type) use ($codebase) {
) {
if (!$has_cloned_type) {
$new_type = clone $new_type;
$has_cloned_type = true;
}
$new_type->removeType($key);

0 comments on commit 7ccd73b

Please sign in to comment.
You can’t perform that action at this time.