From 46ebb0cebbebc691d734e3f850a2ee1b7d480c68 Mon Sep 17 00:00:00 2001 From: Tony Fernandez Date: Fri, 8 Nov 2024 18:45:46 -0500 Subject: [PATCH] removed redundant code --- borgmatic/hooks/pushover.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/borgmatic/hooks/pushover.py b/borgmatic/hooks/pushover.py index 5bb6fac5..8540e8c5 100644 --- a/borgmatic/hooks/pushover.py +++ b/borgmatic/hooks/pushover.py @@ -27,12 +27,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev dry_run_label = ' (dry run; not actually updating)' if dry_run else '' - state_config = hook_config.get( - state.name.lower(), - { - 'message': state.name.lower(), - }, - ) + state_config = hook_config.get(state.name.lower()) token = hook_config.get('token') user = hook_config.get('user')