Skip to content

Commit

Permalink
Remove unnecessary else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangShenao committed Jul 7, 2023
1 parent 5d51f64 commit 3f4c84f
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 3f4c84f

Please sign in to comment.