This repository was archived by the owner on May 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments