Skip to content

Commit

Permalink
Update pydocstringformatter/_formatting/formatters_default.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord authored Sep 12, 2022
1 parent e600442 commit abbfbee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydocstringformatter/_formatting/formatters_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def treat_summary(
# ending quotes
line_length -= quotes_length + 1

summary_lines = summary.splitlines()
if not summary_lines:
if not (summary_lines := summary.splitlines()):
summary_lines = [""]

new_summary = "\n".join(
Expand Down

0 comments on commit abbfbee

Please sign in to comment.