Skip to content

Commit ad95e4c

Browse files
authored
Merge pull request keichi#158 from mohd-akram/remove-redundant-return
Remove redundant return in generated code
2 parents 06701a0 + eda07ca commit ad95e4c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/binary_parser.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,12 +594,7 @@ export class Parser {
594594
this.addRawCode(ctx);
595595
} else {
596596
this.addAliasedCode(ctx);
597-
}
598-
599-
if (this.alias) {
600597
ctx.pushCode(`return ${FUNCTION_PREFIX + this.alias}(0).result;`);
601-
} else {
602-
ctx.pushCode('return vars;');
603598
}
604599

605600
return ctx;

0 commit comments

Comments
 (0)