Skip to content

Commit acf9dea

Browse files
committed
chore: add shellcheck disable to false positive of not reached
1 parent bc96291 commit acf9dea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hardening/UFW Cloudflare/ufw-cloudflare.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ clean_exit() {
8585
exit "$exit_code"
8686
}
8787

88-
# shellcheck disable=SC2329
88+
# shellcheck disable=SC2329,SC2317
89+
# These appear to be false positives. The function is intended to be used in the 'ERR'
90+
# trap handler, and the exit code is passed implicitly via the special variable '$?'.
8991
on_err() {
9092
local exit_code=$?
9193

0 commit comments

Comments
 (0)