]> git.decadent.org.uk Git - maypole.git/commitdiff
Spurious warning.
authorSimon Cozens <simon@simon-cozens.org>
Tue, 6 Apr 2004 11:06:58 +0000 (11:06 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 6 Apr 2004 11:06:58 +0000 (11:06 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@118 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole.pm

index 46fb7d4ac953451059e795351d89fbbc3652431a..70bfd0b277f65bd7c94336240387799f29293003 100644 (file)
@@ -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;
 }