aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-26 02:08:43 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-26 02:08:43 +0000
commit5ad52d3a53210a6a2debf23d9a5411931ba06284 (patch)
treeb52a2abed11e5f635c5b47b28f017d4edef3ae29
parent86db4be7223283effc37a875d0c3e665c55d0418 (diff)
downloadreaction-5ad52d3a53210a6a2debf23d9a5411931ba06284.tar.gz
reaction-5ad52d3a53210a6a2debf23d9a5411931ba06284.zip
double negation is hard to read
-rw-r--r--lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
index 0acac38..f1704ad 100644
--- a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
+++ b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
@@ -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 );