Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jun 22, 2024
1 parent fa47e35 commit 37fe259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/HTTP/Message/PSGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ my $FALSE = !$TRUE;
sub req_to_psgi {
my $req = shift;

Carp::croak("Request is not HTTP::Request: $req")
unless Scalar::Util::blessed $req && $req->isa('HTTP::Request');
unless (Scalar::Util::blessed($req) && $req->isa('HTTP::Request')) {
Carp::croak("Request is not HTTP::Request: $req");
}

# from HTTP::Request::AsCGI
my $host = $req->header('Host');
Expand Down

0 comments on commit 37fe259

Please sign in to comment.