Skip to content

Commit

Permalink
fix: remove unnecesary check from database package.
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Jan 10, 2024
1 parent 12725ea commit 3deca4c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/database/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,14 @@ export const Database = {
const defaultCollections = getDefaultCollections()
Object.keys(getDefaultCollections()).forEach((collectionName) => {
const currentCollection = defaultCollections[collectionName];
if (currentCollection) {
collectionMap.set(collectionName, currentCollection)
}
collectionMap.set(collectionName, currentCollection)
});
}

if (collections) {
Object.keys(collections).forEach((collectionName) => {
const currentCollection = collections[collectionName];
if (currentCollection) {
collectionMap.set(collectionName, currentCollection)
}
collectionMap.set(collectionName, currentCollection)
})
}

Expand Down

0 comments on commit 3deca4c

Please sign in to comment.