Skip to content

Commit

Permalink
Revert "Only enter block if parts is not empty"
Browse files Browse the repository at this point in the history
This reverts commit a33ad3d.
  • Loading branch information
Aaron Smith committed Jul 20, 2020
1 parent a33ad3d commit cbbced8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skoot/utils/_docstr.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def add_to_end_of_section(self, section, content,
parts = self.map_[section]

# if we are to remove the trailing space, do so now
if parts and strip_trailing_space:
if strip_trailing_space:
while not parts[-1].strip(): # truthy check on emptiness
parts.pop(-1)
parts += content
Expand Down

0 comments on commit cbbced8

Please sign in to comment.