Skip to content

Commit

Permalink
fix: fix logic broken if more than one hook in Ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 25, 2023
1 parent d152f42 commit be1a8aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sp_repo_review/checks/precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def check(cls, precommit: dict[str, Any]) -> bool | None:
and "--fix" in hook["args"]
):
return "--show-fixes" in hook["args"]
return None

return None
return False


Expand Down

0 comments on commit be1a8aa

Please sign in to comment.