Skip to content

Commit

Permalink
Merge pull request #2897 from ZhangShenao/code-optimize-zsa
Browse files Browse the repository at this point in the history
Remove unnecessary `else` branch
  • Loading branch information
hazendaz authored Jul 8, 2023
2 parents dd5fd2f + 3f4c84f commit 338f54b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ public Object invoke(Object proxy, Method method, Object[] params) throws Throwa
if ("createStatement".equals(method.getName())) {
Statement stmt = (Statement) method.invoke(connection, params);
return StatementLogger.newInstance(stmt, statementLog, queryStack);
} else {
return method.invoke(connection, params);
}
return method.invoke(connection, params);
} catch (Throwable t) {
throw ExceptionUtil.unwrapThrowable(t);
}
Expand Down

0 comments on commit 338f54b

Please sign in to comment.