From: Daniel F. Dickinson Date: Fri, 3 Jul 2026 21:05:14 +0000 (-0400) Subject: nut: minor fixes found via automated code review X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=bb320e47d786e73270820cf2ed2db03b9b295a3c;p=openwrt-packages.git nut: minor fixes found via automated code review * Fixes a missing word in a comment * Fixes inconsistent indentation in sample configurations * Drops redundant default assignment in find_statepath() Signed-off-by: Daniel F. Dickinson --- diff --git a/net/nut/files/nut-service.sh.functions b/net/nut/files/nut-service.sh.functions index fda69ce60..7ca0da4f1 100644 --- a/net/nut/files/nut-service.sh.functions +++ b/net/nut/files/nut-service.sh.functions @@ -210,7 +210,6 @@ find_statepath() { local nut_value_via_foreach="" find_foreach_value "$section_type" "$package" statepath "$NUT_BASE_STATEPATH" || return 1 - [ -n "$nut_value_via_foreach" ] || nut_value_via_foreach="$NUT_BASE_STATEPATH" # shellcheck disable=2034 STATEPATH="$nut_value_via_foreach" @@ -299,7 +298,7 @@ interface_triggers() { for interface in $interfaces; do # We use the variadic third and fourth parameters of procd_add_interface_trigger to # restart instead of reload on interface up/down events. Additionally the variadic - # fifth and parameters of procd_add_interface_trigger are passed through to + # fifth and following parameters of procd_add_interface_trigger are passed through to # the