Skip to content

Commit

Permalink
chore(drill): remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Nov 11, 2023
1 parent 20adabb commit 2aaed10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/drill/drill.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default async function setupDatabase (logger, database, options) {

export async function killDatabase (db) {
await db.dispose()
db.isClosed = true
}

export async function resolveTables (logger, queryer, options) {
Expand Down
2 changes: 1 addition & 1 deletion packages/falcon/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test.describe('falcon', () => {

test.it('should close the database connection', async () => {
const { db } = await falconMigrate('mysql', { ...mysqlOptions, outputDir: './orama' }, logger)
assert.equal(db.isClosed, true)
assert.equal(db._disposed, true)
})
})

Expand Down

0 comments on commit 2aaed10

Please sign in to comment.