should be if not unless
Christian Hansen [Wed, 23 Mar 2005 17:24:23 +0000 (17:24 +0000)]
lib/Catalyst/View/TT.pm

index 6a801f4..28b1c3c 100644 (file)
@@ -58,7 +58,7 @@ sub new {
         %{ $self->config() }
     );
 
-    unless ( $c->debug && not exists $config{CONTEXT} ) {
+    if ( $c->debug && not exists $config{CONTEXT} ) {
        $config{CONTEXT} = Template::Timer->new(%config);
     }