W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/tasklisttree TLTIf.java,1.4,1.5

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 23 Sep 2009 18:07:10 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MqWFC-0000R5-8v@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklisttree
In directory hutz:/tmp/cvs-serv1629/src/org/w3c/unicorn/tasklisttree

Modified Files:
	TLTIf.java 
Log Message:
Updated command line client

Index: TLTIf.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklisttree/TLTIf.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- TLTIf.java	23 Sep 2009 09:22:13 -0000	1.4
+++ TLTIf.java	23 Sep 2009 18:07:08 -0000	1.5
@@ -82,13 +82,12 @@
 	 * @throws UnicornException
 	 */
 	public boolean check(UnicornCall unicornCall) throws UnicornException {
-		boolean conditionOK = false;
 		for (TLTCond cond : conds) {
 			if (cond.check(unicornCall)) {
-				conditionOK = true;
+				return true;
 			}
 		}
-		return conditionOK;
+		return false;
 	}
 	
 	/**
Received on Wednesday, 23 September 2009 18:07:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT