Skip to content

Commit 6b13264

Browse files
committed
simplify
1 parent 9b104b4 commit 6b13264

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Type/UnionType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,7 @@ public function isSuperTypeOfWithReason(Type $otherType): IsSuperTypeOfResult
253253
}
254254
$results[] = $result;
255255
}
256-
257256
$result = IsSuperTypeOfResult::createNo()->or(...$results);
258-
if ($result->yes()) {
259-
return $result;
260-
}
261257

262258
if ($otherType instanceof TemplateUnionType) {
263259
return $result->or($otherType->isSubTypeOfWithReason($this));

0 commit comments

Comments
 (0)