commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-dbutils git commit: Don't need to nest in an else clause.
Date Sun, 06 May 2018 16:23:59 GMT
Repository: commons-dbutils
Updated Branches:
  refs/heads/master 4f1c5824a -> 9d336010c


Don't need to nest in an else clause.

Project: http://git-wip-us.apache.org/repos/asf/commons-dbutils/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-dbutils/commit/9d336010
Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/9d336010
Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/9d336010

Branch: refs/heads/master
Commit: 9d336010cdd41aa47b3941c81f99aabe13ef0d20
Parents: 4f1c582
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Sun May 6 10:23:57 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Sun May 6 10:23:57 2018 -0600

----------------------------------------------------------------------
 src/test/java/org/apache/commons/dbutils/MockResultSet.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/9d336010/src/test/java/org/apache/commons/dbutils/MockResultSet.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/dbutils/MockResultSet.java b/src/test/java/org/apache/commons/dbutils/MockResultSet.java
index 8815bd8..9831fde 100644
--- a/src/test/java/org/apache/commons/dbutils/MockResultSet.java
+++ b/src/test/java/org/apache/commons/dbutils/MockResultSet.java
@@ -340,10 +340,9 @@ public class MockResultSet implements InvocationHandler {
     protected Boolean next() throws SQLException {
         if (!this.iter.hasNext()) {
             return Boolean.FALSE;
-        } else {
-            this.currentRow = iter.next();
-            return Boolean.TRUE;
         }
+        this.currentRow = iter.next();
+        return Boolean.TRUE;
     }
 
     /**


Mime
View raw message