Skip to content

Commit a696b74

Browse files
authored
refactor: handle both cases
1 parent e70271b commit a696b74

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
@@ -87,7 +87,7 @@ def _prompt_commit_questions(self) -> str:
8787
self.config.settings.get("message_length_limit", None),
8888
)
8989

90-
if message_length_limit is not None and message_len > message_length_limit:
90+
if message_length_limit and message_len > message_length_limit:
9191
raise CommitMessageLengthExceededError(
9292
f"Length of commit message exceeds limit ({message_len}/{message_length_limit})"
9393
)

0 commit comments

Comments
 (0)