Skip to content

Commit 6950e94

Browse files
author
PCOffline
committed
fix: typo in mongoUriValues
1 parent f751544 commit 6950e94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ async function initialise() {
170170
),
171171
);
172172

173-
if (!config.mongoUri && !mongoUriValues.size()) {
173+
if (!config.mongoUri && !mongoUriValues.size) {
174174
logError('No MongoDB URI provided');
175175
throw new Error('No MongoDB URI provided');
176176
}
177177

178178
if (
179-
mongoUriValues.size() > 1 ||
180-
(mongoUriValues.size() &&
179+
mongoUriValues.size > 1 ||
180+
(mongoUriValues.size &&
181181
config.mongoUri !== mongoUriValues.values().next())
182182
) {
183183
logError(

0 commit comments

Comments
 (0)