Refactor curl_download function for improved readability and remove unnecessary whitespace

This commit is contained in:
MickLesk
2026-05-16 23:32:37 +02:00
parent b555ead288
commit 6484870adb
3 changed files with 10 additions and 11 deletions
+3 -4
View File
@@ -2524,7 +2524,6 @@ check_for_gh_release() {
if [[ "$current" =~ ^v[0-9] ]]; then
current="${current:1}"
fi
# Pinned version handling
if [[ -n "$pinned_version_in" ]]; then
@@ -2815,9 +2814,9 @@ function curl_download() {
while ((attempt <= retries)); do
if curl --connect-timeout 15 \
--speed-limit 1024 \
--speed-time 60 \
-fsSL -o "$output" "$url"; then
--speed-limit 1024 \
--speed-time 60 \
-fsSL -o "$output" "$url"; then
return 0
fi
if ((attempt < retries)); then