style: formatting cleanup in api.func and core.func

This commit is contained in:
MickLesk
2026-03-23 20:46:34 +01:00
parent 2008b1b458
commit be52f8e223
2 changed files with 11 additions and 8 deletions
+4 -1
View File
@@ -1688,7 +1688,10 @@ function get_lxc_ip() {
local -a _ips6
read -ra _ips6 <<<"$(hostname -I 2>/dev/null)"
for ip in "${_ips6[@]}"; do
[[ "$ip" == *:* ]] && { echo "$ip"; return 0; }
[[ "$ip" == *:* ]] && {
echo "$ip"
return 0
}
done
fi