Skip to content

Commit 2b672cc

Browse files
committed
clean up (#17)
1 parent 04176cc commit 2b672cc

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/effect-mongodb/src/Db.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,4 @@ export const dropCollection: {
8787
const isDb = (x: unknown) => x instanceof Db
8888

8989
const errorSource = (db: Db, functionName: string) =>
90-
new MongoError.DbErrorSource({
91-
module: "Db",
92-
functionName,
93-
db: db.databaseName
94-
})
90+
new MongoError.DbErrorSource({ module: "Db", functionName, db: db.databaseName })

packages/effect-mongodb/src/MongoClient.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,4 @@ export const db: {
5050
const isMongoClient = (x: unknown) => x instanceof MongoClient_
5151

5252
const errorSource = (hosts: Array<string>, functionName: string) =>
53-
new MongoError.ClientErrorSource({
54-
module: "MongoClient",
55-
functionName,
56-
hosts
57-
})
53+
new MongoError.ClientErrorSource({ module: "MongoClient", functionName, hosts })

0 commit comments

Comments
 (0)