Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/git_commit_guard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def check_imperative(desc, result):


def check_body(lines, result):
separator = lines[1] if len(lines) > 1 else ""
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ruff] reported by reviewdog 🐶
F841 Local variable separator is assigned to but never used

if len(lines) < 3: # noqa: PLR2004
result.error("missing body")
return
Expand Down
Loading