]> Dogcows Code - chaz/p5-HTTP-AnyUA/commitdiff
change an instance of "and" to "&&"
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Mon, 6 Nov 2017 04:56:26 +0000 (21:56 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Mon, 6 Nov 2017 04:56:26 +0000 (21:56 -0700)
lib/HTTP/AnyUA/Backend/Mojo/UserAgent.pm

index 003d10f1132c6a9711d71e606baa391d01248f3f..436eddf4ee61dc63d19146c946599c233a67248e 100644 (file)
@@ -142,7 +142,7 @@ sub _munge_response {
     }
 
     my $err = $tx->error;
-    if ($err and !$err->{code}) {
+    if ($err && !$err->{code}) {
         return HTTP::AnyUA::Util::internal_exception($err->{message}, $resp);
     }
 
This page took 0.020792 seconds and 4 git commands to generate.