Format misc/api.func: spacing and heredocs

Clean up formatting in misc/api.func for readability. Normalized spacing in the categorize_error case patterns, removed trailing blank-space lines, and standardized detect_gpu blank-line spacing. Converted heredoc assignments to use multiline $() style for JSON_PAYLOAD in post_tool_to_api, post_addon_to_api, and post_update_to_api_extended, and added a final newline at end of file. No functional changes intended; purely whitespace/formatting cleanup.
This commit is contained in:
CanbiZ (MickLesk) 2026-02-10 08:17:50 +01:00
parent ed3af96585
commit 53cf705799

View File

@ -551,7 +551,8 @@ post_tool_to_api() {
fi
local JSON_PAYLOAD
JSON_PAYLOAD=$(cat <<EOF
JSON_PAYLOAD=$(
cat <<EOF
{
"random_id": "${uuid}",
"type": "tool",
@ -615,7 +616,8 @@ post_addon_to_api() {
fi
local JSON_PAYLOAD
JSON_PAYLOAD=$(cat <<EOF
JSON_PAYLOAD=$(
cat <<EOF
{
"random_id": "${uuid}",
"type": "addon",
@ -701,7 +703,8 @@ post_update_to_api_extended() {
fi
local JSON_PAYLOAD
JSON_PAYLOAD=$(cat <<EOF
JSON_PAYLOAD=$(
cat <<EOF
{
"random_id": "${RANDOM_UUID}",
"type": "${TELEMETRY_TYPE:-lxc}",