Skip to content
Prev Previous commit
remove bool
  • Loading branch information
ptarjan committed Dec 26, 2025
commit 3203dd38310982c01a75d8814d0fc72e875659d0
8 changes: 3 additions & 5 deletions pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def _ns(


def _rev_exists(rev: str) -> bool:
return not bool(
subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
),
return not subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
)


Expand Down