mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
remove bool
This commit is contained in:
parent
58cbea1156
commit
3203dd3831
1 changed files with 3 additions and 5 deletions
|
|
@ -111,11 +111,9 @@ def _ns(
|
|||
|
||||
|
||||
def _rev_exists(rev: str) -> bool:
|
||||
return not bool(
|
||||
subprocess.call(
|
||||
return not subprocess.call(
|
||||
('git', 'cat-file', '-e', rev),
|
||||
stderr=subprocess.DEVNULL,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue