From a57589f428cb0954a6b0539aba5f9d0a2c7f5ae8 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 3 Feb 2026 20:39:48 +0100 Subject: [PATCH] =?UTF-8?q?Refactor=20cleanup=20function=20to=20remove=20e?= =?UTF-8?q?xit=5FcodeR=C3=AAver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unused local variable exit_code from cleanup function. --- qbittorrent/rootfs/usr/local/sbin/ip6tables-restore | 2 -- 1 file changed, 2 deletions(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/ip6tables-restore b/qbittorrent/rootfs/usr/local/sbin/ip6tables-restore index 23bff73d3..9071cb34a 100644 --- a/qbittorrent/rootfs/usr/local/sbin/ip6tables-restore +++ b/qbittorrent/rootfs/usr/local/sbin/ip6tables-restore @@ -7,10 +7,8 @@ if [[ ! -x "${REAL_IP6TABLES_RESTORE}" ]]; then fi cleanup() { - local exit_code=$? [[ -n "${RULES_FILE:-}" && -f "${RULES_FILE}" ]] && rm -f "${RULES_FILE}" [[ -n "${SANITIZED_FILE:-}" && -f "${SANITIZED_FILE}" ]] && rm -f "${SANITIZED_FILE}" - return $exit_code } trap cleanup EXIT