From: Jos Boumans Date: Wed, 24 Jun 2009 12:08:05 +0000 (+0200) Subject: * formatting change X-Git-Tag: 0.20~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76b60811edb8232e205ef3ca18427edf2efbde4a;p=gitmo%2FMooseX-Storage.git * formatting change --- diff --git a/lib/MooseX/Storage.pm b/lib/MooseX/Storage.pm index e74a606..a6e4c25 100644 --- a/lib/MooseX/Storage.pm +++ b/lib/MooseX/Storage.pm @@ -59,10 +59,10 @@ sub _injected_storage_role_generator { for my $trait ( @{ $params{'traits'} ||= [] } ) { push @roles, 'MooseX::Storage::Traits::'.$trait; } - - Class::MOP::load_class($_) - || die "Could not load role (" . $_ . ")" - foreach @roles; + + for my $role ( @roles ) { + Class::MOP::load_class($role) or die "Could not load role ($role)"; + } return @roles; }