Skip to content

Commit 7ea109c

Browse files
committed
Merge branch 'main' into ruff-fmt
2 parents 6e38d83 + 05497a5 commit 7ea109c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/public_symbols_checker.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ def remove_common_symbols():
122122
del removed_symbols[file_path]
123123

124124

125+
# If a symbol is added and removed in the same commit, we consider it as not
126+
# added or removed.
127+
remove_common_symbols()
128+
125129
if added_symbols or removed_symbols:
126-
# If a symbol is added and removed in the same commit, we consider it
127-
# as not added or removed.
128-
remove_common_symbols()
129130
print("The code in this branch adds the following public symbols:")
130131
print()
131132
for file_path_, symbols_ in added_symbols.items():

0 commit comments

Comments
 (0)