Skip to content

Commit 338f54b

Browse files
authored
Merge pull request #2897 from ZhangShenao/code-optimize-zsa
Remove unnecessary `else` branch
2 parents dd5fd2f + 3f4c84f commit 338f54b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/apache/ibatis/logging/jdbc/ConnectionLogger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ public Object invoke(Object proxy, Method method, Object[] params) throws Throwa
5656
if ("createStatement".equals(method.getName())) {
5757
Statement stmt = (Statement) method.invoke(connection, params);
5858
return StatementLogger.newInstance(stmt, statementLog, queryStack);
59-
} else {
60-
return method.invoke(connection, params);
6159
}
60+
return method.invoke(connection, params);
6261
} catch (Throwable t) {
6362
throw ExceptionUtil.unwrapThrowable(t);
6463
}

0 commit comments

Comments
 (0)