Skip to content

Commit 14ae1b3

Browse files
authored
Merge pull request #2949 from oah1021/Removed_redundant_assignments
Removed redundant assignments.
2 parents ad5cbfb + 7d79c73 commit 14ae1b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/ibatis/datasource/pooled/PooledDataSource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ private PooledConnection popConnection(String username, String password) throws
557557
* @return True if the connection is still usable
558558
*/
559559
protected boolean pingConnection(PooledConnection conn) {
560-
boolean result = true;
560+
boolean result;
561561

562562
try {
563563
result = !conn.getRealConnection().isClosed();
@@ -581,7 +581,6 @@ protected boolean pingConnection(PooledConnection conn) {
581581
if (!realConn.getAutoCommit()) {
582582
realConn.rollback();
583583
}
584-
result = true;
585584
if (log.isDebugEnabled()) {
586585
log.debug("Connection " + conn.getRealHashCode() + " is GOOD!");
587586
}

0 commit comments

Comments
 (0)