Skip to content

Commit

Permalink
Issue #1471: remove an unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jan 24, 2022
1 parent b10a9ee commit 6a59838
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Kernel/GenericInterface/Transport/HTTP/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,7 @@ sub RequesterPerformRequest {
# the actual request to the remote service
$RestClient->$RestCommand(@RequestParam);

my $ErrorMessage = "Error while performing REST '$RestCommand' request to Controller '$Controller' on Host '"
. $Config->{Host} . "'.";
my $ErrorMessage = "Error while performing REST '$RestCommand' request to Controller '$Controller' on Host '$Config->{Host}'.";
my $ResponseError;
if ( $Param{CustomResponseAssessor} ) {
$ResponseError = $Param{CustomResponseAssessor}->(
Expand Down Expand Up @@ -1048,16 +1047,13 @@ sub _ThrowWebException {
my ( $Self, %Param ) = @_;

# Check params.
my $ErrorMessage;
if ( defined $Param{HTTPCode} && !IsInteger( $Param{HTTPCode} ) ) {
$Param{HTTPCode} = 500;
$Param{Content} = 'Invalid internal HTTPCode';
$ErrorMessage = 'Invalid internal HTTPCode';
}
elsif ( defined $Param{Content} && !IsString( $Param{Content} ) ) {
$Param{HTTPCode} = 500;
$Param{Content} = 'Invalid Content';
$ErrorMessage = 'Invalid Content';
}

# FIXME: according to SOAP::Transport::HTTP the previous should not be used
Expand Down

0 comments on commit 6a59838

Please sign in to comment.