Skip to content

Commit

Permalink
Fix: Correct protection for destructive actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
divmain committed Mar 10, 2015
1 parent c4645e4 commit a0d1ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/util/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

def destructive(description):
def decorator(fn):
settings = sublime.load_settings("GitSavvy.sublime-settings")

def wrapped_fn(*args, **kwargs):
settings = sublime.load_settings("GitSavvy.sublime-settings")
if settings.get("prompt_before_destructive_action"):
message = (
"You are about to {desc}. "
Expand Down

0 comments on commit a0d1ea9

Please sign in to comment.