From: Patrick Donelan Date: Mon, 25 Jan 2010 04:29:11 +0000 (+1100) Subject: Removed confusing/unnecessary code in Recipe4 POD X-Git-Tag: 0.95~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9e3314843e0d42c9da7455b4587d4fb8dd4806b;p=gitmo%2FMoose.git Removed confusing/unnecessary code in Recipe4 POD --- diff --git a/lib/Moose/Cookbook/Basics/Recipe4.pod b/lib/Moose/Cookbook/Basics/Recipe4.pod index 58cdd5b..190f62b 100644 --- a/lib/Moose/Cookbook/Basics/Recipe4.pod +++ b/lib/Moose/Cookbook/Basics/Recipe4.pod @@ -56,7 +56,7 @@ Moose::Cookbook::Basics::Recipe4 - Subtypes, and modeling a simple B cl sub BUILD { my ( $self, $params ) = @_; - if ( @{ $self->employees || [] } ) { + if ( $self->employees ) { foreach my $employee ( @{ $self->employees } ) { $employee->employer($self); }