Skip to content

Commit d80393b

Browse files
yjawLee-W
authored andcommitted
refactor(commit): rewrite logic and test for tag: --body-length-limit in commit
1 parent 52c3e20 commit d80393b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎commitizen/commands/commit.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _wrap_body(self, message: str) -> str:
109109
"body_length_limit", self.config.settings.get("body_length_limit", 0)
110110
)
111111
# By the contract, body_length_limit is set to 0 for no limit
112-
if body_length_limit <= 0:
112+
if not body_length_limit or body_length_limit <= 0:
113113
return message
114114

115115
lines = message.split("\n")

0 commit comments

Comments
 (0)