Skip to content

Commit

Permalink
Fix public symbol checker flaky case (#3825)
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass authored Mar 29, 2024
1 parent 721beb8 commit 05497a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/public_symbols_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ def remove_common_symbols():
del removed_symbols[file_path]


if added_symbols or removed_symbols:
# If a symbol is added and removed in the same commit, we consider it as not
# added or removed.
remove_common_symbols()

# If a symbol is added and removed in the same commit, we consider it
# as not added or removed.
remove_common_symbols()
if added_symbols or removed_symbols:
print("The code in this branch adds the following public symbols:")
print()
for file_path_, symbols_ in added_symbols.items():
Expand Down

0 comments on commit 05497a5

Please sign in to comment.