Skip to content

Commit

Permalink
Exit early from suffix loop when skipped suffix is found (openxla#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlevesquedion authored Mar 20, 2024
1 parent c3f4565 commit e7117ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_tools/github_actions/lint_check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ for file in "${CHANGED_FILES[@]}"; do
for suffix in "${SKIPPED_SUFFIXES[@]}"; do
if [[ "$file" = *$suffix ]]; then
skip=1
break
fi
done
if (( skip )); then
Expand Down

0 comments on commit e7117ac

Please sign in to comment.