From: Dave Rolsky Date: Tue, 16 Sep 2008 18:44:05 +0000 (+0000) Subject: No need for default to be a sub when it just returns a string. X-Git-Tag: 0.58~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e000133868ec074e6b60baef47269c2d345adffc;p=gitmo%2FMoose.git No need for default to be a sub when it just returns a string. --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 1fab159..4d07d55 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -28,12 +28,12 @@ __PACKAGE__->meta->add_attribute('roles' => ( __PACKAGE__->meta->add_attribute('constructor_class' => ( accessor => 'constructor_class', - default => sub { 'Moose::Meta::Method::Constructor' } + default => 'Moose::Meta::Method::Constructor', )); __PACKAGE__->meta->add_attribute('destructor_class' => ( accessor => 'destructor_class', - default => sub { 'Moose::Meta::Method::Destructor' } + default => 'Moose::Meta::Method::Destructor', )); __PACKAGE__->meta->add_attribute('error_class' => (