瀏覽代碼

removed redundant code

Tony Fernandez 7 月之前
父節點
當前提交
46ebb0cebb
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      borgmatic/hooks/pushover.py

+ 1 - 6
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')