Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Jan 2, 2024
1 parent 680c78a commit 7029a0f
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ public static PresignContext getPresignContext(DatabendConnection connection, Pr
throw new SQLException("Failed to get presign url");
}
} catch (Throwable e) {
try {
statement.close();
} catch (Throwable closeException) {
if (closeException != e) {
e.addSuppressed(closeException);
}
}
throw e;
throw new SQLException("Failed to do presign");
} finally {
statement.close();
}
Expand Down

0 comments on commit 7029a0f

Please sign in to comment.