Skip to content

Commit 8ac7702

Browse files
committed
Fix linter problem with function return
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
1 parent 43d39db commit 8ac7702

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugins/repository.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ def load_config_file(config_file_path='config/repository.yaml'):
6969

7070

7171
def load_project(project, config):
72+
ret = []
7273
for p in config['projects']:
7374
pattern = re.compile(p['name'])
7475
if pattern.search(project):
75-
return p['repositories']
76-
# stop in the first match
76+
ret = p['repositories']
7777
break
7878

79-
error('Unknown project: ' + project)
79+
if not ret:
80+
error('Unknown project: ' + project)
81+
82+
return ret
8083

8184

8285
def get_linux_distro():

0 commit comments

Comments
 (0)