mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
Minor style change for consistency sake
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user