From 090030447d42c0c6994a958b18c20976ac9b5b74 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Wed, 8 Nov 2017 17:05:22 -0800 Subject: [PATCH] Combine blocks --- pre_commit/commands/autoupdate.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pre_commit/commands/autoupdate.py b/pre_commit/commands/autoupdate.py index d05269e9..5ba5a8eb 100644 --- a/pre_commit/commands/autoupdate.py +++ b/pre_commit/commands/autoupdate.py @@ -116,12 +116,12 @@ def autoupdate(runner, tags_only, repo=None): input_config = load_config(runner.config_file_path) for repo_config in input_config['repos']: - # Skip updating any repo_configs that aren't for the specified repo - if repo and repo != repo_config['repo']: - output_repos.append(repo_config) - continue - - if is_local_repo(repo_config) or is_meta_repo(repo_config): + if ( + is_local_repo(repo_config) or + is_meta_repo(repo_config) or + # Skip updating any repo_configs that aren't for the specified repo + repo and repo != repo_config['repo'] + ): output_repos.append(repo_config) continue output.write('Updating {}...'.format(repo_config['repo']))