Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
remove duplicate database.connecting check (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspet authored Sep 28, 2020
1 parent 2f9fdcb commit 6c3f957
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/db/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ export function createConnection(server, database) {

async function connect(server, database) {
/* eslint no-param-reassign: 0 */
if (database.connecting) {
throw new Error('There is already a connection in progress for this server. Aborting this new request.');
}

if (database.connecting) {
throw new Error('There is already a connection in progress for this database. Aborting this new request.');
}
Expand Down

0 comments on commit 6c3f957

Please sign in to comment.