Skip to content

Commit 071e450

Browse files
committed
refactor(commit): rewrite logic and test for tag: --body-length-limit in commit
1 parent faacc87 commit 071e450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/commands/commit.py

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

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

0 commit comments

Comments
 (0)