Skip to content

Commit 6adc755

Browse files
committed
removing unnecessary Conditional
1 parent cee4c0e commit 6adc755

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/slang-nodes/StateVariableAttributes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export class StateVariableAttributes extends SlangNode {
2727
}
2828

2929
print(path: AstPath<StateVariableAttributes>, print: PrintFunction): Doc {
30-
return this.items.length
31-
? path.map((item) => [line, print(item)], 'items')
32-
: '';
30+
return path.map((item) => [line, print(item)], 'items');
3331
}
3432
}

0 commit comments

Comments
 (0)