Skip to content

Commit c859eca

Browse files
committed
Early return if CFn not included
1 parent e8929c7 commit c859eca

File tree

1 file changed

+6
-4
lines changed
  • localstack-core/localstack/testing/testselection

1 file changed

+6
-4
lines changed

localstack-core/localstack/testing/testselection/matching.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,12 @@ def cloudformation_resource_provider_rule(
175175
if match:
176176
break
177177

178-
if match:
179-
changed_service = match[0]
180-
if changed_service != "cloudformation":
181-
return []
178+
if not match:
179+
return []
180+
181+
changed_service = match[0]
182+
if changed_service != "cloudformation":
183+
return []
182184

183185
out = set()
184186
for test_dir in test_dirs:

0 commit comments

Comments
 (0)