Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit b49965d

Browse files
committed
fix eslint warns
1 parent 59f6112 commit b49965d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/data-service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class DataService extends EventEmitter {
178178
* and options.
179179
*
180180
* @param {string} ns - The namespace to search on.
181+
* @param {object} filter - The filter for the count.
181182
* @param {object} options - The query options.
182183
* @param {function} callback - The callback function.
183184
*/

lib/native-client.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class NativeClient extends EventEmitter {
104104
this.isMongos = false;
105105

106106
const [
107-
_client, // The client is set in the `setupListeners` method.
107+
// eslint-disable-next-line no-unused-vars
108+
_, // The client is set in the `setupListeners` method.
108109
connectionOptions
109110
] = await connect(
110111
this.model,
@@ -294,7 +295,8 @@ class NativeClient extends EventEmitter {
294295
*/
295296
collections(databaseName, callback) {
296297
if (databaseName === SYSTEM) {
297-
return callback(null, []);
298+
callback(null, []);
299+
return;
298300
}
299301
this.collectionNames(databaseName, (error, names) => {
300302
if (error) {
@@ -514,6 +516,7 @@ class NativeClient extends EventEmitter {
514516

515517
/**
516518
* Disconnect the client.
519+
* @param {Function} callback - Callback called after connection closed.
517520
*/
518521
disconnect(callback) {
519522
this.client.close(true, callback);

0 commit comments

Comments
 (0)