diff --git a/lib/functions/logging/traps.sh b/lib/functions/logging/traps.sh index c3afa5124e..9f0313bf5b 100644 --- a/lib/functions/logging/traps.sh +++ b/lib/functions/logging/traps.sh @@ -111,7 +111,6 @@ function add_cleanup_handler() { function execute_and_remove_cleanup_handler() { local callback="$1" display_alert "Execute and remove cleanup handler" "${callback}" "cleanup" - # @TODO implement! loop over the list of cleanups; run the one that matches the callback; remove it from the list. local remaning_cleanups=() for one_cleanup_handler in "${trap_manager_cleanup_handlers[@]}"; do if [[ "${one_cleanup_handler}" != "${callback}" ]]; then