Skip to content

Commit 5f6ba16

Browse files
committed
only attempt to print if we know it exists
1 parent d1f4a3a commit 5f6ba16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slang-nodes/YulFunctionDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class YulFunctionDefinition implements SlangNode {
5050
'function ',
5151
path.call(print, 'name'),
5252
path.call(print, 'parameters'),
53-
path.call(print, 'returns') || ' ',
53+
this.returns ? path.call(print, 'returns') : ' ',
5454
path.call(print, 'body')
5555
];
5656
}

0 commit comments

Comments
 (0)