Skip to content

Commit

Permalink
Merge pull request #236 from juliankrispel/implements-keyword
Browse files Browse the repository at this point in the history
Only print implements keyword if it has at least one interface argument.
  • Loading branch information
benjamn committed Nov 25, 2015
2 parents 6b9cbe8 + 9e35797 commit 1d5c765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ function genericPrintNoParens(path, options, print) {
);
}

if (n["implements"]) {
if (n["implements"] && n['implements'].length > 0) {
parts.push(
" implements ",
fromString(", ").join(path.map(print, "implements"))
Expand Down

0 comments on commit 1d5c765

Please sign in to comment.