Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0900304

Browse files
committed
Combine blocks
1 parent dfb058f commit 0900304

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pre_commit/commands/autoupdate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def autoupdate(runner, tags_only, repo=None):
116116
input_config = load_config(runner.config_file_path)
117117

118118
for repo_config in input_config['repos']:
119-
# Skip updating any repo_configs that aren't for the specified repo
120-
if repo and repo != repo_config['repo']:
121-
output_repos.append(repo_config)
122-
continue
123-
124-
if is_local_repo(repo_config) or is_meta_repo(repo_config):
119+
if (
120+
is_local_repo(repo_config) or
121+
is_meta_repo(repo_config) or
122+
# Skip updating any repo_configs that aren't for the specified repo
123+
repo and repo != repo_config['repo']
124+
):
125125
output_repos.append(repo_config)
126126
continue
127127
output.write('Updating {}...'.format(repo_config['repo']))

0 commit comments

Comments
 (0)