[Bps-public-commit] r16721 - in Prophet/branches/init-and-clone: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Nov 6 12:42:38 EST 2008


Author: sartak
Date: Thu Nov  6 12:42:38 2008
New Revision: 16721

Modified:
   Prophet/branches/init-and-clone/   (props changed)
   Prophet/branches/init-and-clone/lib/Prophet/Record.pm

Log:
 r75136 at onn:  sartak | 2008-11-06 12:42:32 -0500
 Minor cleanup


Modified: Prophet/branches/init-and-clone/lib/Prophet/Record.pm
==============================================================================
--- Prophet/branches/init-and-clone/lib/Prophet/Record.pm	(original)
+++ Prophet/branches/init-and-clone/lib/Prophet/Record.pm	Thu Nov  6 12:42:38 2008
@@ -215,10 +215,13 @@
     my %args = validate( @_, { props => 1 } );
     my $uuid = $self->uuid_generator->create_str;
 
-    $self->default_props($args{'props'});
-    $self->canonicalize_props( $args{'props'} );
-    $self->validate_props( $args{'props'} ) or return undef;
-    $self->_create_record( props => $args{props}, uuid => $uuid);
+    my $props = $args{props});
+
+    $self->default_props($props);
+    $self->canonicalize_props($props);
+    $self->validate_props($props) or return undef;
+
+    $self->_create_record(props => $props, uuid => $uuid);
 }
 
 sub _create_record {



More information about the Bps-public-commit mailing list