Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unnecessary use of -a option in read command in dco_check.sh #7917

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/dco_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
##

status=0
while IFS= read -r -a line; do
while IFS= read -r line; do
my_array+=( "$line" )
Comment on lines +18 to 19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my_array+=( "$line" ) already treats the line array as a string. this change has no discernible impact

done < <( git branch -r | grep -v origin/HEAD )
for branch in "${my_array[@]}"
Expand Down