Skip to content

Commit 074c87a

Browse files
committed
perf(list_transitive_includes): only check for add suggestions if changes provided
1 parent b0d4098 commit 074c87a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

list_transitive_includes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def expand_includes(includer, included):
9999
expand_includes(included, transitive_include)
100100

101101
# Inject any add suggestions here
102-
if not remove_only:
102+
if changes and not remove_only:
103103
for added_include in add_suggestions[included]:
104104
expand_includes(included, added_include)
105105

0 commit comments

Comments
 (0)