aedi: simplify condition in target filter for cmake modules

This commit is contained in:
alexey.lysiuk 2021-07-25 12:04:58 +03:00
parent 92bb063a74
commit 508f50fbdd
1 changed files with 2 additions and 5 deletions

View File

@ -469,11 +469,8 @@ class CMakeStaticDependencyTarget(CMakeTarget):
for regex in import_regexes: for regex in import_regexes:
match = regex.match(line) match = regex.match(line)
if not match: if match and match.group('target') != target:
continue return None
else:
if match.group('target') != target:
return None
return line return line