mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
WebPaste: remove unnecessary $result var
This commit is contained in:
parent
8403063d34
commit
6c5d20e265
@ -67,8 +67,7 @@ sub paste_0x0st {
|
|||||||
);
|
);
|
||||||
alarm 1; # LWP::UserAgent::Paranoid kills alarm
|
alarm 1; # LWP::UserAgent::Paranoid kills alarm
|
||||||
return "error pasting: " . $response->status_line if not $response->is_success;
|
return "error pasting: " . $response->status_line if not $response->is_success;
|
||||||
my $result = $response->content;
|
return $response->content;
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub paste_ixio {
|
sub paste_ixio {
|
||||||
@ -79,8 +78,7 @@ sub paste_ixio {
|
|||||||
my $response = $ua->post("http://ix.io", \%post);
|
my $response = $ua->post("http://ix.io", \%post);
|
||||||
alarm 1; # LWP::UserAgent::Paranoid kills alarm
|
alarm 1; # LWP::UserAgent::Paranoid kills alarm
|
||||||
return "error pasting: " . $response->status_line if not $response->is_success;
|
return "error pasting: " . $response->status_line if not $response->is_success;
|
||||||
my $result = $response->content;
|
return $response->content;
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user