Fix AUTHORS etc to match all other files
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index b8e62cf..4d04c97 100644 (file)
@@ -658,14 +658,11 @@ sub view {
     unshift @args, $c;
 
     if( $name ) {
-        if ( !ref $name ) { # Direct component hash lookup to avoid costly regexps
-            if ( $container->has_service($name) ) {
-                return $container->get_component($name, \@args);
-            }
-            else {
-                $c->log->warn( "Attempted to use view '$name', but does not exist" );
-            }
-        }
+        # Direct component hash lookup to avoid costly regexps
+        return $container->get_component($name, \@args)
+            if !ref $name && $container->has_service($name);
+
+        $c->log->warn( "Attempted to use view '$name', but does not exist" );
 
         return $container->get_component_regexp( $c, $name, \@args );
     }
@@ -2376,7 +2373,7 @@ sub setup_config {
     $class->finalize_config; # back-compat
 }
 
-=head $c->finalize_config
+=head2 $c->finalize_config
 
 =cut
 
@@ -3107,6 +3104,8 @@ Andrew Ford E<lt>A.Ford@ford-mason.co.ukE<gt>
 
 Andrew Ruthven
 
+AndrĂ© Walker
+
 andyg: Andy Grundman <andy@hybridized.org>
 
 audreyt: Audrey Tang