mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use bool
This commit is contained in:
parent
07ad091363
commit
aec205773a
1 changed files with 4 additions and 6 deletions
|
|
@ -111,12 +111,10 @@ def _ns(
|
|||
|
||||
|
||||
def _rev_exists(rev: str) -> bool:
|
||||
return not (
|
||||
not subprocess.call(
|
||||
return not bool(subprocess.call(
|
||||
('git', 'cat-file', '-e', rev),
|
||||
stderr=subprocess.DEVNULL,
|
||||
)
|
||||
)
|
||||
))
|
||||
|
||||
|
||||
def _pre_push_ns(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue