From 6ddfce4cc3895c68d2a3e1f541c761b637ba1da6 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 28 Nov 2017 19:10:22 -0800 Subject: [PATCH] Remove code duplication --- PBot/Interpreter.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 02f645fa..2f10bb0d 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -266,11 +266,10 @@ sub interpret { if (exists $stuff->{pipe}) { $stuff->{pipe_rest} = "$rest | { $stuff->{pipe} }$stuff->{pipe_rest}"; - $stuff->{pipe} = $pipe; } else { - $stuff->{pipe} = $pipe; $stuff->{pipe_rest} = $rest; } + $stuff->{pipe} = $pipe; } # unescape any escaped pipes