From 25c858c13ec3099986fa5c2d7eac4342bc3daa6f Mon Sep 17 00:00:00 2001 From: Eli Schiff Date: Mon, 16 Dec 2019 15:56:12 -0500 Subject: [PATCH] removed useless redefined of path variable (#1023) --- thefuck/rules/touch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/touch.py b/thefuck/rules/touch.py index 31e9fcef..56d86c03 100644 --- a/thefuck/rules/touch.py +++ b/thefuck/rules/touch.py @@ -9,6 +9,6 @@ def match(command): def get_new_command(command): - path = path = re.findall( + path = re.findall( r"touch: (?:cannot touch ')?(.+)/.+'?:", command.output)[0] return shell.and_(u'mkdir -p {}'.format(path), command.script)