From: Charles McGarvey Date: Mon, 6 Nov 2017 04:56:26 +0000 (-0700) Subject: change an instance of "and" to "&&" X-Git-Tag: v0.901~1 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=50826247ddebab0fa65e920092445c61153c4252;p=chaz%2Fp5-HTTP-AnyUA change an instance of "and" to "&&" --- diff --git a/lib/HTTP/AnyUA/Backend/Mojo/UserAgent.pm b/lib/HTTP/AnyUA/Backend/Mojo/UserAgent.pm index 003d10f..436eddf 100644 --- a/lib/HTTP/AnyUA/Backend/Mojo/UserAgent.pm +++ b/lib/HTTP/AnyUA/Backend/Mojo/UserAgent.pm @@ -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); }