Skip to content

Commit

Permalink
Remove unnecessary parameter from doesIndexExist
Browse files Browse the repository at this point in the history
  • Loading branch information
milderhc committed Oct 9, 2023
1 parent ddd36f4 commit 780dd49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Mono<Void> createTableAsync() {
statement.addBatch(createCollectionKeyTable);
statement.addBatch(createSKMemoryTable);

boolean indexExists = doesIndexExist(statement);
boolean indexExists = doesIndexExist();

if (!indexExists) {
String createIndex =
Expand All @@ -68,7 +68,7 @@ public Mono<Void> createTableAsync() {
.then();
}

private boolean doesIndexExist(Statement statement) throws SQLException {
private boolean doesIndexExist() throws SQLException {
DatabaseMetaData meta = connection.getMetaData();
try (ResultSet indexes = meta.getIndexInfo(null, null, TABLE_NAME, false, false)) {
while (indexes.next()) {
Expand Down

0 comments on commit 780dd49

Please sign in to comment.