[hir] Remove unnecessary check for place kind

This commit is contained in:
Sathya Gunasekaran
2023-09-07 13:57:02 +01:00
parent 603d2179a8
commit 20203cd889
@@ -277,9 +277,7 @@ export function* eachPatternOperand(pattern: Pattern): Iterable<Place> {
case "ObjectPattern": {
for (const property of pattern.properties) {
if (property.kind === "ObjectProperty") {
if (property.place.kind === "Identifier") {
yield property.place;
}
yield property.place;
} else if (property.kind === "Spread") {
yield property.place;
} else {