Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2014 00:34:51 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r264580 - user/des/fbp/lib/FBP/Controller
Message-ID:  <201404170034.s3H0YpwI026376@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Thu Apr 17 00:34:51 2014
New Revision: 264580
URL: http://svnweb.freebsd.org/changeset/base/264580

Log:
  Fix inverted logic in review code.

Modified:
  user/des/fbp/lib/FBP/Controller/Poll.pm

Modified: user/des/fbp/lib/FBP/Controller/Poll.pm
==============================================================================
--- user/des/fbp/lib/FBP/Controller/Poll.pm	Thu Apr 17 00:34:49 2014	(r264579)
+++ user/des/fbp/lib/FBP/Controller/Poll.pm	Thu Apr 17 00:34:51 2014	(r264580)
@@ -177,7 +177,7 @@ sub review :Chained('poll') :Path :Args(
     # Validate the answers
     try {
 	$poll->validate_answer(%$answers)
-	    unless $poll->active; # hack
+	    if $poll->active; # hack
     } catch {
 	$c->stash(error => $_);
 	$c->detach();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404170034.s3H0YpwI026376>