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

View file

@ -469,10 +469,7 @@ 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
else:
if match.group('target') != target:
return None return None
return line return line