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

Commit 0adda95

Browse files
committed
fix eslint warns
1 parent 3f896f7 commit 0adda95

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
@@ -108,7 +108,8 @@ class NativeClient extends EventEmitter {
108108
this.isMongos = false;
109109

110110
const [
111-
_client, // The client is set in the `setupListeners` method.
111+
// eslint-disable-next-line no-unused-vars
112+
_, // The client is set in the `setupListeners` method.
112113
connectionOptions
113114
] = await connect(
114115
this.model,
@@ -298,7 +299,8 @@ class NativeClient extends EventEmitter {
298299
*/
299300
collections(databaseName, callback) {
300301
if (databaseName === SYSTEM) {
301-
return callback(null, []);
302+
callback(null, []);
303+
return;
302304
}
303305
this.collectionNames(databaseName, (error, names) => {
304306
if (error) {
@@ -518,6 +520,7 @@ class NativeClient extends EventEmitter {
518520

519521
/**
520522
* Disconnect the client.
523+
* @param {Function} callback - Callback called after connection closed.
521524
*/
522525
disconnect(callback) {
523526
this.client.close(true, callback);

0 commit comments

Comments
 (0)