1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

forgot return statements, oops

This commit is contained in:
Ryan Callahan 2021-04-05 21:08:32 -04:00
parent 6da18d0332
commit 457983635a
No known key found for this signature in database
GPG Key ID: 1EA116782D6C6338

View File

@ -100,6 +100,8 @@ def select_command(corrected_commands):
if settings.require_double_confirmation and selector.value.script in const.DOUBLE_CONFIRMATION_SCRIPTS:
selector.value = double_confirm(selector)
return selector.value
def double_confirm(selector):
confirmation_text = const.DOUBLE_CONFIRMATION_SCRIPTS[selector.value.script]