From be1a8aac88405da1a24f7bfa259d170804303d8f Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 25 Oct 2023 17:47:53 -0400 Subject: [PATCH] fix: fix logic broken if more than one hook in Ruff Signed-off-by: Henry Schreiner --- src/sp_repo_review/checks/precommit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sp_repo_review/checks/precommit.py b/src/sp_repo_review/checks/precommit.py index edb5a9e0..83a12317 100644 --- a/src/sp_repo_review/checks/precommit.py +++ b/src/sp_repo_review/checks/precommit.py @@ -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