Skip to content

Commit d49ddaf

Browse files
committed
small size improvement
1 parent d51cf49 commit d49ddaf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/slang-nodes/TupleValues.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export class TupleValues implements SlangNode {
3434
}
3535

3636
getSingleExpression(): Expression | undefined {
37-
return this.items.length === 1 ? this.items[0].expression : undefined;
37+
const items = this.items;
38+
return items.length === 1 ? items[0].expression : undefined;
3839
}
3940

4041
print(path: AstPath<TupleValues>, print: PrintFunction): Doc {

0 commit comments

Comments
 (0)