Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix(graphql): Keep useful empty lines in description #13013

Merged
merged 6 commits into from
Jun 16, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary ternary
  • Loading branch information
fisker authored Jun 16, 2022
commit bb6345ac0f4483747fcd15d2f02abddfe1f25ba5
6 changes: 1 addition & 5 deletions src/language-graphql/printer-graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ function genericPrint(path, options, print) {
lines.length = 0;
}

return join(hardline, [
'"""',
...(lines.length > 0 ? lines : []),
'"""',
]);
return join(hardline, ['"""', ...lines, '"""', ]);
}
return [
'"',
Expand Down