Fix to drop obsolete code

This commit is contained in:
iliajie
2023-05-18 22:10:28 +03:00
parent 18392aab61
commit 29bb158ef4

View File

@@ -13124,16 +13124,10 @@ if ($redir_host) {
}
}
%redirect = %redirects if (keys %redirects);
my %original_redirect = %redirect;
%redirect = %{$redirect{'redir'}};
if ($original_redirect{'error'}) {
$redirect{'error'} = $original_redirect{'error'};
}
else {
@hops = grep { $_->{'redir'} } @hops;
$redirect{'hops'} = \@hops
if (@hops);
}
@hops = grep { $_->{'redir'} } @hops;
$redirect{'hops'} = \@hops
if (@hops);
return \%redirect;
}