double negation is hard to read
groditi [Wed, 26 Nov 2008 02:08:43 +0000 (02:08 +0000)]
lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm

index 0acac38..f1704ad 100644 (file)
@@ -95,7 +95,7 @@ sub sync_to_action {
 };
 sub sync_from_action {
   my ($self) = @_;
-  return unless !$self->needs_sync; # && $self->has_attribute;
+  return if $self->needs_sync;
   if( !$self->has_message ){
     if(my $error = $self->model->error_for($self->attribute) ){
       $self->message( $error );