From 3203dd38310982c01a75d8814d0fc72e875659d0 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 26 Dec 2025 16:09:12 -0700 Subject: [PATCH] remove bool --- pre_commit/commands/hook_impl.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index dc9666f5..815b22b2 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -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, )