From: Simon Cozens Date: Tue, 6 Apr 2004 11:06:58 +0000 (+0000) Subject: Spurious warning. X-Git-Tag: 2.10~244 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=829074e50fdf5ad9a383234a676f115d4f8b4c5a;p=maypole.git Spurious warning. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@118 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 46fb7d4..70bfd0b 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -55,10 +55,7 @@ sub handler { $r->get_request(); $r->parse_location(); my $status = $r->handler_guts(); - if ($status != OK) { - warn "NOT OK!"; - return $status; - } + return $status unless $status == OK; $r->send_output; return $status; }