mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Minor style change for consistency sake
This commit is contained in:
parent
17a9a8211d
commit
d97ea30c4b
1 changed files with 4 additions and 2 deletions
|
|
@ -161,8 +161,10 @@ def run(runner, args, write=sys_stdout_write_wrapper, environ=os.environ):
|
|||
with ctx:
|
||||
hook_executors = list(get_hook_executors(runner))
|
||||
if args.hook:
|
||||
hook_executors = [he for he in hook_executors
|
||||
if he.hook['id'] == args.hook]
|
||||
hook_executors = [
|
||||
he for he in hook_executors
|
||||
if he.hook['id'] == args.hook
|
||||
]
|
||||
if not hook_executors:
|
||||
write('No hook with id `{0}`\n'.format(args.hook))
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue