chore: trim review exclusions

This commit is contained in:
2026-05-15 04:32:56 +00:00
parent b867eaa845
commit 06e39e8068
4 changed files with 38 additions and 25 deletions
+10 -1
View File
@@ -10,6 +10,14 @@ fail() {
exit 1
}
cleanup_candidate_file=""
cleanup() {
if [[ -n "${cleanup_candidate_file:-}" ]]; then
rm -f -- "${cleanup_candidate_file}"
fi
}
trim() {
# Remove leading and trailing ASCII whitespace from a string.
local value="$1"
@@ -357,7 +365,8 @@ main() {
log "Token source resolved successfully"
candidate_file="$(mktemp)"
trap "rm -f -- '${candidate_file}'" EXIT
cleanup_candidate_file="${candidate_file}"
trap cleanup EXIT
summary="$(collect_package_candidates "${owner}" "${keep_count}" "${candidate_file}" "${token}" "${package_names[@]}")"
IFS=$'\t' read -r package_count total_version_count kept_count candidate_count <<< "${summary}"